pub struct Distance(pub Length);Tuple Fields§
§0: LengthTrait Implementations§
Source§impl<'de> BorrowDecode<'de, ()> for Distance
Decode it as a f32 in m
impl<'de> BorrowDecode<'de, ()> for Distance
Decode it as a f32 in m
Source§fn borrow_decode<D: BorrowDecoder<'de>>(
decoder: &mut D,
) -> Result<Self, DecodeError>
fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Deref for Distance
impl Deref for Distance
Source§type Target = Quantity<dyn Dimension<I = Z0, M = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0, Kind = dyn Kind, T = Z0, Th = Z0, N = Z0>, dyn Units<f32, luminous_intensity = candela, amount_of_substance = mole, time = second, thermodynamic_temperature = kelvin, length = meter, electric_current = ampere, mass = kilogram>, f32>
type Target = Quantity<dyn Dimension<I = Z0, M = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0, Kind = dyn Kind, T = Z0, Th = Z0, N = Z0>, dyn Units<f32, luminous_intensity = candela, amount_of_substance = mole, time = second, thermodynamic_temperature = kelvin, length = meter, electric_current = ampere, mass = kilogram>, f32>
The resulting type after dereferencing.
Source§impl<'de> Deserialize<'de> for Distance
impl<'de> Deserialize<'de> for Distance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Quantity<dyn Dimension<I = Z0, M = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0, Kind = dyn Kind, T = Z0, Th = Z0, N = Z0>, dyn Units<f32, luminous_intensity = candela, amount_of_substance = mole, time = second, thermodynamic_temperature = kelvin, length = meter, electric_current = ampere, mass = kilogram>, f32>> for Distance
impl From<Quantity<dyn Dimension<I = Z0, M = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0, Kind = dyn Kind, T = Z0, Th = Z0, N = Z0>, dyn Units<f32, luminous_intensity = candela, amount_of_substance = mole, time = second, thermodynamic_temperature = kelvin, length = meter, electric_current = ampere, mass = kilogram>, f32>> for Distance
impl Copy for Distance
impl StructuralPartialEq for Distance
Auto Trait Implementations§
impl Freeze for Distance
impl !RefUnwindSafe for Distance
impl Send for Distance
impl Sync for Distance
impl Unpin for Distance
impl !UnwindSafe for Distance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ElementType for T
impl<T> ElementType for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more