Struct nalgebra::proptest::DimRange[][src]

pub struct DimRange<D = Dynamic>(_);

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]

impl From<RangeInclusive<usize>> for DimRange<Dynamic>[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

impl<D> Send for DimRange<D> where
    D: Send

impl<D> Sync for DimRange<D> where
    D: Sync

impl<D> Unpin for DimRange<D> where
    D: Unpin

impl<D> UnwindSafe for DimRange<D> where
    D: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,