Type Alias nalgebra::base::dimension::U4

source ·
pub type U4 = Const<4>;

Aliased Type§

struct U4;

Trait Implementations§

source§

impl IsNotStaticOne for U4

source§

impl<const R: usize> Clone for Const<R>

source§

fn clone(&self) -> Const<R>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<const R: usize> Debug for Const<R>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de, const D: usize> Deserialize<'de> for Const<D>

source§

fn deserialize<Des>(deserializer: Des) -> Result<Self, Des::Error>
where Des: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

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

source§

fn try_to_usize() -> Option<usize>

Gets the compile-time value of Self. Returns None if it is not known, i.e., if Self = Dyn.
source§

fn value(&self) -> usize

Gets the run-time value of self. For type-level integers, this is the same as Self::try_to_usize().unwrap().
source§

fn from_usize(dim: usize) -> Self

Builds an instance of Self from a run-time value. Panics if Self is a type-level integer and dim != Self::try_to_usize().unwrap().
source§

fn is<D: Dim>() -> bool

source§

impl<const A: usize, const B: usize> DimAdd<Const<B>> for Const<A>

§

type Output = <<<Const<A> as ToTypenum>::Typenum as Add<<Const<B> as ToTypenum>::Typenum>>::Output as ToConst>::Const

source§

fn add(self, _: Const<B>) -> Self::Output

source§

impl<const A: usize, const B: usize> DimDiv<Const<B>> for Const<A>

§

type Output = <<<Const<A> as ToTypenum>::Typenum as Div<<Const<B> as ToTypenum>::Typenum>>::Output as ToConst>::Const

source§

fn div(self, _: Const<B>) -> Self::Output

source§

impl<const A: usize, const B: usize> DimMax<Const<B>> for Const<A>

§

type Output = <<<Const<A> as ToTypenum>::Typenum as Max<<Const<B> as ToTypenum>::Typenum>>::Output as ToConst>::Const

source§

fn max(self, _: Const<B>) -> Self::Output

source§

impl<const A: usize, const B: usize> DimMin<Const<B>> for Const<A>

§

type Output = <<<Const<A> as ToTypenum>::Typenum as Min<<Const<B> as ToTypenum>::Typenum>>::Output as ToConst>::Const

source§

fn min(self, _: Const<B>) -> Self::Output

source§

impl<const A: usize, const B: usize> DimMul<Const<B>> for Const<A>

§

type Output = <<<Const<A> as ToTypenum>::Typenum as Mul<<Const<B> as ToTypenum>::Typenum>>::Output as ToConst>::Const

source§

fn mul(self, _: Const<B>) -> Self::Output

source§

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

source§

const USIZE: usize = T

source§

fn name() -> Self

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

fn dim() -> usize

The value of this dimension.
source§

impl<const A: usize, const B: usize> DimNameAdd<Const<B>> for Const<A>

§

type Output = <<<Const<A> as ToTypenum>::Typenum as Add<<Const<B> as ToTypenum>::Typenum>>::Output as ToConst>::Const

source§

fn add(self, _: Const<B>) -> Self::Output

source§

impl<const A: usize, const B: usize> DimNameDiv<Const<B>> for Const<A>

§

type Output = <<<Const<A> as ToTypenum>::Typenum as Div<<Const<B> as ToTypenum>::Typenum>>::Output as ToConst>::Const

source§

fn div(self, _: Const<B>) -> Self::Output

source§

impl<const A: usize, const B: usize> DimNameMax<Const<B>> for Const<A>

§

type Output = <<<Const<A> as ToTypenum>::Typenum as Max<<Const<B> as ToTypenum>::Typenum>>::Output as ToConst>::Const

source§

fn max(self, _: Const<B>) -> Self::Output

source§

impl<const A: usize, const B: usize> DimNameMin<Const<B>> for Const<A>

§

type Output = <<<Const<A> as ToTypenum>::Typenum as Min<<Const<B> as ToTypenum>::Typenum>>::Output as ToConst>::Const

source§

fn min(self, _: Const<B>) -> Self::Output

source§

impl<const A: usize, const B: usize> DimNameMul<Const<B>> for Const<A>

§

type Output = <<<Const<A> as ToTypenum>::Typenum as Mul<<Const<B> as ToTypenum>::Typenum>>::Output as ToConst>::Const

source§

fn mul(self, _: Const<B>) -> Self::Output

source§

impl<const A: usize, const B: usize> DimNameSub<Const<B>> for Const<A>

§

type Output = <<<Const<A> as ToTypenum>::Typenum as Sub<<Const<B> as ToTypenum>::Typenum>>::Output as ToConst>::Const

source§

fn sub(self, _: Const<B>) -> Self::Output

source§

impl<const A: usize, const B: usize> DimSub<Const<B>> for Const<A>

§

type Output = <<<Const<A> as ToTypenum>::Typenum as Sub<<Const<B> as ToTypenum>::Typenum>>::Output as ToConst>::Const

source§

fn sub(self, _: Const<B>) -> Self::Output

source§

impl<const R: usize> Hash for Const<R>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<const R: usize> PartialEq for Const<R>

source§

fn eq(&self, other: &Const<R>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<const D: usize> Serialize for Const<D>

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ToTypenum for Const<4>

source§

impl<const R: usize> Copy for Const<R>

source§

impl<const R: usize> Eq for Const<R>

source§

impl<const R: usize> StructuralPartialEq for Const<R>