pub struct Distance(pub Box<DistanceInner>);
Expand description
Distance Type: A length - a value with a unit that is a physical distance.
Distance v5.0.0
A length - a value with a unit that is a physical distance
A length - a value with a unit that is a physical distance.
The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.
Tuple Fields§
§0: Box<DistanceInner>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Distance
impl<'de> Deserialize<'de> for Distance
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Distance, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Distance, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DistanceInner> for Distance
impl From<DistanceInner> for Distance
Source§fn from(inner: DistanceInner) -> Distance
fn from(inner: DistanceInner) -> Distance
Converts to this type from the input type.
Source§impl Serialize for Distance
impl Serialize for Distance
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
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