Enum shades::MatrixDim[][src]

pub enum MatrixDim {
    D22,
    D23,
    D24,
    D32,
    D33,
    D34,
    D42,
    D43,
    D44,
}

Matrix dimension.

Matrices can have several dimensions. Most of the time, you will be interested in squared dimensions, e.g. 2×2, 3×3 and 4×4. However, other dimensions exist.

Note: matrices are expressed in column-major.

Variants

D22

Squared 2 dimension.

D23

2×3 dimension.

D24

2×4 dimension.

D32

3×2 dimension.

D33

Squared 3 dimension.

D34

3×4 dimension.

D42

4×2 dimension.

D43

4×3 dimension.

D44

Squared 4 dimension.

Trait Implementations

impl Clone for MatrixDim[src]

impl Debug for MatrixDim[src]

impl Eq for MatrixDim[src]

impl Hash for MatrixDim[src]

impl PartialEq<MatrixDim> for MatrixDim[src]

impl StructuralEq for MatrixDim[src]

impl StructuralPartialEq for MatrixDim[src]

Auto Trait Implementations

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> 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.