Trait nalgebra::base::dimension::DimName

source ·
pub trait DimName: Dim {
    const USIZE: usize;

    // Required methods
    fn name() -> Self;
    fn dim() -> usize;
}
Expand description

Trait implemented exclusively by type-level integers.

Required Associated Constants§

Required Methods§

source

fn name() -> Self

The name of this dimension, i.e., the singleton Self.

source

fn dim() -> usize

The value of this dimension.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<const T: usize> DimName for Const<T>

source§

const USIZE: usize = T