pub enum QuantityType {
Scalar,
Length,
Area,
Volume,
Density,
Angle,
Weight,
Invalid,
}
Expand description
A quantity type with
Variants§
Scalar
A unitless scalar value.
Length
Length in mm.
Area
Area in mm².
Volume
Volume in mm³.
Density
Density in g/mm³
Angle
An angle in radians.
Weight
Weight of a specific volume of material.
Invalid
An invalid, unsupported quantity type.
Implementations§
Trait Implementations§
Source§impl Clone for QuantityType
impl Clone for QuantityType
Source§fn clone(&self) -> QuantityType
fn clone(&self) -> QuantityType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for QuantityType
impl Debug for QuantityType
Source§impl Display for QuantityType
impl Display for QuantityType
Source§impl Div for QuantityType
impl Div for QuantityType
Source§impl<'_derivative_strum> From<&'_derivative_strum QuantityType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum QuantityType> for &'static str
Source§fn from(x: &'_derivative_strum QuantityType) -> &'static str
fn from(x: &'_derivative_strum QuantityType) -> &'static str
Converts to this type from the input type.
Source§impl From<QuantityType> for &'static str
impl From<QuantityType> for &'static str
Source§fn from(x: QuantityType) -> &'static str
fn from(x: QuantityType) -> &'static str
Converts to this type from the input type.
Source§impl From<QuantityType> for Type
impl From<QuantityType> for Type
Source§fn from(value: QuantityType) -> Self
fn from(value: QuantityType) -> Self
Converts to this type from the input type.
Source§impl Hash for QuantityType
impl Hash for QuantityType
Source§impl Mul for QuantityType
impl Mul for QuantityType
Source§impl Ord for QuantityType
impl Ord for QuantityType
Source§fn cmp(&self, other: &QuantityType) -> Ordering
fn cmp(&self, other: &QuantityType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl Parse for QuantityType
impl Parse for QuantityType
fn parse(pair: Pair<'_>) -> ParseResult<Self>
Source§impl PartialEq for QuantityType
impl PartialEq for QuantityType
Source§impl PartialOrd for QuantityType
impl PartialOrd for QuantityType
impl Eq for QuantityType
impl StructuralPartialEq for QuantityType
Auto Trait Implementations§
impl Freeze for QuantityType
impl RefUnwindSafe for QuantityType
impl Send for QuantityType
impl Sync for QuantityType
impl Unpin for QuantityType
impl UnwindSafe for QuantityType
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string()
Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more