rustfmt (nalgebra)
This commit is contained in:
parent
5dfe06897f
commit
646f62a293
|
@ -169,7 +169,7 @@ pub struct MatrixParameters<NParameters, R, C> {
|
||||||
/// ranges such as `5 ..= 6`. The latter example corresponds to dimensions from (inclusive)
|
/// ranges such as `5 ..= 6`. The latter example corresponds to dimensions from (inclusive)
|
||||||
/// `Dynamic::new(5)` to `Dynamic::new(6)` (inclusive).
|
/// `Dynamic::new(5)` to `Dynamic::new(6)` (inclusive).
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct DimRange<D=Dynamic>(RangeInclusive<D>);
|
pub struct DimRange<D = Dynamic>(RangeInclusive<D>);
|
||||||
|
|
||||||
impl<D: Dim> DimRange<D> {
|
impl<D: Dim> DimRange<D> {
|
||||||
/// The lower bound for dimensions generated.
|
/// The lower bound for dimensions generated.
|
||||||
|
@ -204,7 +204,7 @@ impl From<RangeInclusive<usize>> for DimRange<Dynamic> {
|
||||||
impl<D: Dim> DimRange<D> {
|
impl<D: Dim> DimRange<D> {
|
||||||
/// Converts the `DimRange` into an instance of `RangeInclusive`.
|
/// Converts the `DimRange` into an instance of `RangeInclusive`.
|
||||||
pub fn to_range_inclusive(&self) -> RangeInclusive<usize> {
|
pub fn to_range_inclusive(&self) -> RangeInclusive<usize> {
|
||||||
self.lower_bound().value() ..= self.upper_bound().value()
|
self.lower_bound().value()..=self.upper_bound().value()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue