Struct nalgebra::proptest::DimRange [−][src]
A range of allowed dimensions for use in generation of matrices.
The DimRange
type is used to encode the range of dimensions that can be used for generation
of matrices with proptest
. In most cases, you do not need to concern yourself with
DimRange
directly, as it supports conversion from other types such as U3
or inclusive
ranges such as 5 ..= 6
. The latter example corresponds to dimensions from (inclusive)
Dynamic::new(5)
to Dynamic::new(6)
(inclusive).
Implementations
impl<D: Dim> DimRange<D>
[src]
pub fn lower_bound(&self) -> D
[src]
The lower bound for dimensions generated.
pub fn upper_bound(&self) -> D
[src]
The upper bound for dimensions generated.
impl<D: Dim> DimRange<D>
[src]
pub fn to_range_inclusive(&self) -> RangeInclusive<usize>
[src]
Converts the DimRange
into an instance of RangeInclusive
.
Trait Implementations
impl<D: Clone> Clone for DimRange<D>
[src]
impl<D: Debug> Debug for DimRange<D>
[src]
impl<D: Eq> Eq for DimRange<D>
[src]
impl<D: Dim> From<D> for DimRange<D>
[src]
impl<D: Dim> From<RangeInclusive<D>> for DimRange<D>
[src]
fn from(range: RangeInclusive<D>) -> Self
[src]
impl From<RangeInclusive<usize>> for DimRange<Dynamic>
[src]
fn from(range: RangeInclusive<usize>) -> Self
[src]
impl From<usize> for DimRange<Dynamic>
[src]
impl<D: PartialEq> PartialEq<DimRange<D>> for DimRange<D>
[src]
impl<D> StructuralEq for DimRange<D>
[src]
impl<D> StructuralPartialEq for DimRange<D>
[src]
Auto Trait Implementations
impl<D> RefUnwindSafe for DimRange<D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<D> Send for DimRange<D> where
D: Send,
D: Send,
impl<D> Sync for DimRange<D> where
D: Sync,
D: Sync,
impl<D> Unpin for DimRange<D> where
D: Unpin,
D: Unpin,
impl<D> UnwindSafe for DimRange<D> where
D: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,