pub enum UnitKeyword {
AngleUnit,
LengthUnit,
ParametricUnit,
ScaleUnit,
TimeUnit,
Unit,
}Expand description
The keyword used for a unit.
Variants§
AngleUnit
ANGLEUNIT – for angular measurements.
LengthUnit
LENGTHUNIT – for linear measurements.
ParametricUnit
PARAMETRICUNIT – for parametric values (e.g. pressure).
ScaleUnit
SCALEUNIT – for dimensionless scale factors.
TimeUnit
TIMEUNIT (or TEMPORALQUANTITY) – for temporal measurements.
Unit
UNIT – the generic backward-compatible keyword.
Trait Implementations§
Source§impl Clone for UnitKeyword
impl Clone for UnitKeyword
Source§fn clone(&self) -> UnitKeyword
fn clone(&self) -> UnitKeyword
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 UnitKeyword
impl Debug for UnitKeyword
Source§impl Display for UnitKeyword
impl Display for UnitKeyword
Source§impl PartialEq for UnitKeyword
impl PartialEq for UnitKeyword
impl StructuralPartialEq for UnitKeyword
Auto Trait Implementations§
impl Freeze for UnitKeyword
impl RefUnwindSafe for UnitKeyword
impl Send for UnitKeyword
impl Sync for UnitKeyword
impl Unpin for UnitKeyword
impl UnsafeUnpin for UnitKeyword
impl UnwindSafe for UnitKeyword
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