TenTo

Struct TenTo 

Source
pub struct TenTo<const N: i8>;
Expand description

Used for multiplying a unit by 10ⁿ.

type Millimeter = uy::Mul<uy::si::m, uy::TenTo<-3>>;

Trait Implementations§

Source§

impl<const EXP: i8, const N: i8, const S: i8, const M: i8, const KG: i8, const A: i8, const K: i8, const MOL: i8, const CD: i8, const RAD: i8> Div<TenTo<N>> for Si<EXP, S, M, KG, A, K, MOL, CD, RAD>
where Const<EXP>: Sub<Const<N>>, TypenumSi<<Const<EXP> as Sub<Const<N>>>::Output, Const<S>, Const<M>, Const<KG>, Const<A>, Const<K>, Const<MOL>, Const<CD>, Const<RAD>>: ToConst,

Source§

type Output = <TypenumSi<<Const<EXP> as Sub<Const<N>>>::Output, Const<S>, Const<M>, Const<KG>, Const<A>, Const<K>, Const<MOL>, Const<CD>, Const<RAD>> as ToConst>::Output

The resulting type after applying the / operator.
Source§

fn div(self, _rhs: TenTo<N>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const EXP: i8, const N: i8, const S: i8, const M: i8, const KG: i8, const A: i8, const K: i8, const MOL: i8, const CD: i8, const RAD: i8> Mul<TenTo<N>> for Si<EXP, S, M, KG, A, K, MOL, CD, RAD>
where Const<EXP>: Add<Const<N>>, TypenumSi<<Const<EXP> as Add<Const<N>>>::Output, Const<S>, Const<M>, Const<KG>, Const<A>, Const<K>, Const<MOL>, Const<CD>, Const<RAD>>: ToConst,

Source§

type Output = <TypenumSi<<Const<EXP> as Add<Const<N>>>::Output, Const<S>, Const<M>, Const<KG>, Const<A>, Const<K>, Const<MOL>, Const<CD>, Const<RAD>> as ToConst>::Output

The resulting type after applying the * operator.
Source§

fn mul(self, _rhs: TenTo<N>) -> Self::Output

Performs the * operation. Read more

Auto Trait Implementations§

§

impl<const N: i8> Freeze for TenTo<N>

§

impl<const N: i8> RefUnwindSafe for TenTo<N>

§

impl<const N: i8> Send for TenTo<N>

§

impl<const N: i8> Sync for TenTo<N>

§

impl<const N: i8> Unpin for TenTo<N>

§

impl<const N: i8> UnwindSafe for TenTo<N>

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> 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, 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.