#[repr(u32)]pub enum UnitType {
Show 14 variants
None = 0,
Other = 1,
Meters = 2,
Grams = 3,
Degrees = 4,
EnglishAngularVelocity = 5,
SiLinearVelocity = 6,
SiLinearAcceleration = 7,
Webers = 8,
Candelas = 9,
Pascals = 10,
Lux = 11,
Seconds = 12,
UnknownOrdinal_(u32),
}Expand description
This provides an easy, standardized way to specify units. New units can be added as needed. Each UnitType should be named after a specific unit that should be fully distinguished by the name (E.g: Use METERS instead of DISTANCE). More complicated units that need to be differentiated should begin with SI_ (for Internation System of Units) or ENGLISH_ (for English System of Units).
Variants§
None = 0
Other = 1
Meters = 2
Grams = 3
Degrees = 4
EnglishAngularVelocity = 5
SiLinearVelocity = 6
SiLinearAcceleration = 7
Webers = 8
Candelas = 9
Pascals = 10
Lux = 11
Seconds = 12
UnknownOrdinal_(u32)
Trait Implementations§
Source§impl<'a, ___E> Encode<UnitType, ___E> for &'a UnitTypewhere
___E: ?Sized,
impl<'a, ___E> Encode<UnitType, ___E> for &'a UnitTypewhere
___E: ?Sized,
Source§impl<___E> Encode<UnitType, ___E> for UnitTypewhere
___E: ?Sized,
impl<___E> Encode<UnitType, ___E> for UnitTypewhere
___E: ?Sized,
Source§impl FromWireRef<UnitType> for UnitType
impl FromWireRef<UnitType> for UnitType
Source§fn from_wire_ref(wire: &UnitType) -> UnitType
fn from_wire_ref(wire: &UnitType) -> UnitType
Converts the given reference to this type.
Source§impl Ord for UnitType
impl Ord for UnitType
Source§impl PartialOrd for UnitType
impl PartialOrd for UnitType
impl Copy for UnitType
impl Eq for UnitType
impl StructuralPartialEq for UnitType
Auto Trait Implementations§
impl Freeze for UnitType
impl RefUnwindSafe for UnitType
impl Send for UnitType
impl Sync for UnitType
impl Unpin for UnitType
impl UnsafeUnpin for UnitType
impl UnwindSafe for UnitType
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,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]