#[repr(u32)]pub enum ValueUnitType {
NoUnits = 0,
Distance = 1,
Angle = 2,
Area = 4,
Volume = 8,
Currency = 16,
Percentage = 32,
}Expand description
Value unit type.
Variants§
NoUnits = 0
No units.
Distance = 1
Distance units.
Angle = 2
Angle units.
Area = 4
Area units.
Volume = 8
Volume units.
Currency = 16
Currency units.
Percentage = 32
Percentage.
Trait Implementations§
Source§impl Clone for ValueUnitType
impl Clone for ValueUnitType
Source§fn clone(&self) -> ValueUnitType
fn clone(&self) -> ValueUnitType
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 ValueUnitType
impl Debug for ValueUnitType
Source§impl Default for ValueUnitType
impl Default for ValueUnitType
Source§fn default() -> ValueUnitType
fn default() -> ValueUnitType
Returns the “default value” for a type. Read more
Source§impl From<u32> for ValueUnitType
impl From<u32> for ValueUnitType
Source§impl PartialEq for ValueUnitType
impl PartialEq for ValueUnitType
impl Copy for ValueUnitType
impl Eq for ValueUnitType
impl StructuralPartialEq for ValueUnitType
Auto Trait Implementations§
impl Freeze for ValueUnitType
impl RefUnwindSafe for ValueUnitType
impl Send for ValueUnitType
impl Sync for ValueUnitType
impl Unpin for ValueUnitType
impl UnsafeUnpin for ValueUnitType
impl UnwindSafe for ValueUnitType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.