Struct Dimension

Source
pub struct Dimension<const L: i32, const M: i32, const T: i32, const Θ: i32 = 0, const I: i32 = 0, const N: i32 = 0, const J: i32 = 0>;

Trait Implementations§

Source§

impl<const L: i32, const M: i32, const T: i32, const Θ: i32, const I: i32, const N: i32, const J: i32> Clone for Dimension<L, M, T, Θ, I, N, J>

Source§

fn clone(&self) -> Dimension<L, M, T, Θ, I, N, J>

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 L: i32, const M: i32, const T: i32, const Θ: i32, const I: i32, const N: i32, const J: i32> Debug for Dimension<L, M, T, Θ, I, N, J>

Source§

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

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

impl<const L: i32, const M: i32, const T: i32, const Θ: i32, const I: i32, const N: i32, const J: i32> Default for Dimension<L, M, T, Θ, I, N, J>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<const L: i32, const M: i32, const T: i32, const Θ: i32, const I: i32, const N: i32, const J: i32> Display for Dimension<L, M, T, Θ, I, N, J>

—– NICE PRINTING —–

Source§

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

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

impl<const L: i32, const M: i32, const T: i32, const Θ: i32, const I: i32, const N: i32, const J: i32> InvertDimension for Dimension<L, M, T, Θ, I, N, J>
where (): ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }>,

Source§

type Output = Dimension<{ <() as ConstNeg<L>>::OUTPUT }, { <() as ConstNeg<M>>::OUTPUT }, { <() as ConstNeg<T>>::OUTPUT }, { <() as ConstNeg<Θ>>::OUTPUT }, { <() as ConstNeg<I>>::OUTPUT }, { <() as ConstNeg<N>>::OUTPUT }, { <() as ConstNeg<J>>::OUTPUT }>

Source§

impl<const L1: i32, const M1: i32, const T1: i32, const Θ1: i32, const I1: i32, const N1: i32, const J1: i32, const L2: i32, const M2: i32, const T2: i32, const Θ2: i32, const I2: i32, const N2: i32, const J2: i32> MultiplyDimensions<Dimension<L2, M2, T2, Θ2, I2, N2, J2>> for Dimension<L1, M1, T1, Θ1, I1, N1, J1>
where (): ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }>,

Source§

type Output = Dimension<{ <() as ConstAdd<L1, L2>>::OUTPUT }, { <() as ConstAdd<M1, M2>>::OUTPUT }, { <() as ConstAdd<T1, T2>>::OUTPUT }, { <() as ConstAdd<Θ1, Θ2>>::OUTPUT }, { <() as ConstAdd<I1, I2>>::OUTPUT }, { <() as ConstAdd<N1, N2>>::OUTPUT }, { <() as ConstAdd<J1, J2>>::OUTPUT }>

Source§

impl<const L: i32, const M: i32, const T: i32, const Θ: i32, const I: i32, const N: i32, const J: i32> SqrtDimension for Dimension<L, M, T, Θ, I, N, J>
where (): ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }>,

Source§

type Output = Dimension<{ <() as ConstDiv<L, 2>>::OUTPUT }, { <() as ConstDiv<M, 2>>::OUTPUT }, { <() as ConstDiv<T, 2>>::OUTPUT }, { <() as ConstDiv<Θ, 2>>::OUTPUT }, { <() as ConstDiv<I, 2>>::OUTPUT }, { <() as ConstDiv<N, 2>>::OUTPUT }, { <() as ConstDiv<J, 2>>::OUTPUT }>

Source§

impl<const L: i32, const M: i32, const T: i32, const Θ: i32, const I: i32, const N: i32, const J: i32> SquareDimension for Dimension<L, M, T, Θ, I, N, J>
where (): ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }> + ConstCheck<{ _ }>,

Source§

type Output = Dimension<{ <() as ConstAdd<L, L>>::OUTPUT }, { <() as ConstAdd<M, M>>::OUTPUT }, { <() as ConstAdd<T, T>>::OUTPUT }, { <() as ConstAdd<Θ, Θ>>::OUTPUT }, { <() as ConstAdd<I, I>>::OUTPUT }, { <() as ConstAdd<N, N>>::OUTPUT }, { <() as ConstAdd<J, J>>::OUTPUT }>

Source§

impl<const L: i32, const M: i32, const T: i32, const Θ: i32, const I: i32, const N: i32, const J: i32> Copy for Dimension<L, M, T, Θ, I, N, J>

Auto Trait Implementations§

§

impl<const L: i32, const M: i32, const T: i32, const Θ: i32, const I: i32, const N: i32, const J: i32> Freeze for Dimension<L, M, T, Θ, I, N, J>

§

impl<const L: i32, const M: i32, const T: i32, const Θ: i32, const I: i32, const N: i32, const J: i32> RefUnwindSafe for Dimension<L, M, T, Θ, I, N, J>

§

impl<const L: i32, const M: i32, const T: i32, const Θ: i32, const I: i32, const N: i32, const J: i32> Send for Dimension<L, M, T, Θ, I, N, J>

§

impl<const L: i32, const M: i32, const T: i32, const Θ: i32, const I: i32, const N: i32, const J: i32> Sync for Dimension<L, M, T, Θ, I, N, J>

§

impl<const L: i32, const M: i32, const T: i32, const Θ: i32, const I: i32, const N: i32, const J: i32> Unpin for Dimension<L, M, T, Θ, I, N, J>

§

impl<const L: i32, const M: i32, const T: i32, const Θ: i32, const I: i32, const N: i32, const J: i32> UnwindSafe for Dimension<L, M, T, Θ, I, N, J>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V