nyx_space::linalg::dimension

Type Alias U61

Source
pub type U61 = Const<61>;

Aliased Type§

struct U61;

Trait Implementations

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<(), Error>

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<Const<D>, <Des as Deserializer<'de>>::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) -> Const<T>

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>() -> bool
where D: Dim,

Source§

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

Source§

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

Source§

fn add(self, _: Const<B>) -> <Const<A> as DimAdd<Const<B>>>::Output

Source§

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

Source§

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

Source§

fn div(self, _: Const<B>) -> <Const<A> as DimDiv<Const<B>>>::Output

Source§

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

Source§

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

Source§

fn max(self, _: Const<B>) -> <Const<A> as DimMax<Const<B>>>::Output

Source§

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

Source§

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

Source§

fn min(self, _: Const<B>) -> <Const<A> as DimMin<Const<B>>>::Output

Source§

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

Source§

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

Source§

fn mul(self, _: Const<B>) -> <Const<A> as DimMul<Const<B>>>::Output

Source§

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

Source§

const USIZE: usize = T

Source§

fn name() -> Const<T>

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>

Source§

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

Source§

fn add(self, _: Const<B>) -> <Const<A> as DimNameAdd<Const<B>>>::Output

Source§

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

Source§

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

Source§

fn div(self, _: Const<B>) -> <Const<A> as DimNameDiv<Const<B>>>::Output

Source§

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

Source§

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

Source§

fn max(self, _: Const<B>) -> <Const<A> as DimNameMax<Const<B>>>::Output

Source§

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

Source§

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

Source§

fn min(self, _: Const<B>) -> <Const<A> as DimNameMin<Const<B>>>::Output

Source§

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

Source§

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

Source§

fn mul(self, _: Const<B>) -> <Const<A> as DimNameMul<Const<B>>>::Output

Source§

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

Source§

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

Source§

fn sub(self, _: Const<B>) -> <Const<A> as DimNameSub<Const<B>>>::Output

Source§

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

Source§

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

Source§

fn sub(self, _: Const<B>) -> <Const<A> as DimSub<Const<B>>>::Output

Source§

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

Source§

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

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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 as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

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

impl ToTypenum for Const<61>

Source§

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

Source§

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

Source§

impl IsNotStaticOne for Const<61>

Source§

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