DynDim

Struct DynDim 

Source
pub struct DynDim(pub i8, pub i8, pub i8, pub i8, pub i8, pub i8, pub i8);
Expand description

Dynamic (runtime) Dimension

Tuple Fields§

§0: i8§1: i8§2: i8§3: i8§4: i8§5: i8§6: i8

Implementations§

Source§

impl DynDim

Source

pub const fn new(dim_code: u64) -> DynDim

Source

pub const fn prod(self, rhs: DynDim) -> DynDim

Source

pub const fn quot(self, rhs: DynDim) -> DynDim

Source

pub const fn powi(self, n: i8) -> DynDim

Source

pub const fn is_equal(&self, rhs: &DynDim) -> bool

Trait Implementations§

Source§

impl Clone for DynDim

Source§

fn clone(&self) -> DynDim

Returns a duplicate 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 Debug for DynDim

Source§

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

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

impl Default for DynDim

Source§

fn default() -> DynDim

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

impl Dimension for DynDim

Source§

fn length(&self) -> i8

Source§

fn mass(&self) -> i8

Source§

fn time(&self) -> i8

Source§

fn temperature(&self) -> i8

Source§

fn amount(&self) -> i8

Source§

fn current(&self) -> i8

Source§

fn luminous(&self) -> i8

Source§

fn dim_code(&self) -> u64

Source§

impl Display for DynDim

Source§

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

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

impl<D> Div<D> for DynDim
where D: Dimension,

Source§

type Output = DynDim

The resulting type after applying the / operator.
Source§

fn div(self, rhs: D) -> <DynDim as Div<D>>::Output

Performs the / operation. Read more
Source§

impl<L, M, T, θ, N, I, J> Div<DynDim> for Dim<L, M, T, θ, N, I, J>
where L: Integer, M: Integer, T: Integer, θ: Integer, N: Integer, I: Integer, J: Integer,

Source§

type Output = DynDim

The resulting type after applying the / operator.
Source§

fn div(self, rhs: DynDim) -> <Dim<L, M, T, θ, N, I, J> as Div<DynDim>>::Output

Performs the / operation. Read more
Source§

impl<D> DivAssign<D> for DynDim
where D: Dimension,

Source§

fn div_assign(&mut self, rhs: D)

Performs the /= operation. Read more
Source§

impl<L, M, T, θ, N, I, J> From<Dim<L, M, T, θ, N, I, J>> for DynDim
where L: Integer, M: Integer, T: Integer, θ: Integer, N: Integer, I: Integer, J: Integer,

Source§

fn from(_: Dim<L, M, T, θ, N, I, J>) -> DynDim

Converts to this type from the input type.
Source§

impl From<u64> for DynDim

Source§

fn from(code: u64) -> DynDim

Converts to this type from the input type.
Source§

impl<D> Mul<D> for DynDim
where D: Dimension,

Source§

type Output = DynDim

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: D) -> <DynDim as Mul<D>>::Output

Performs the * operation. Read more
Source§

impl<L, M, T, θ, N, I, J> Mul<DynDim> for Dim<L, M, T, θ, N, I, J>
where L: Integer, M: Integer, T: Integer, θ: Integer, N: Integer, I: Integer, J: Integer,

Source§

type Output = DynDim

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: DynDim) -> <Dim<L, M, T, θ, N, I, J> as Mul<DynDim>>::Output

Performs the * operation. Read more
Source§

impl<D> MulAssign<D> for DynDim
where D: Dimension,

Source§

fn mul_assign(&mut self, rhs: D)

Performs the *= operation. Read more
Source§

impl<D0> PartialEq<D0> for DynDim
where D0: Dimension,

Source§

fn eq(&self, other: &D0) -> 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 Copy for DynDim

Auto Trait Implementations§

§

impl Freeze for DynDim

§

impl RefUnwindSafe for DynDim

§

impl Send for DynDim

§

impl Sync for DynDim

§

impl Unpin for DynDim

§

impl UnwindSafe for DynDim

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> Same for T

Source§

type Output = T

Should always be Self
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.