#[non_exhaustive]#[repr(u32)]pub enum KnownUnit {
Centimeter = 17,
Radian = 18,
Inch = 19,
Degree = 20,
}Expand description
Some known unit values.
Note: this type is incomplete, and does not represent all the possible unit values.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
impl Copy for KnownUnit
impl StructuralPartialEq for KnownUnit
Auto Trait Implementations§
impl Freeze for KnownUnit
impl RefUnwindSafe for KnownUnit
impl Send for KnownUnit
impl Sync for KnownUnit
impl Unpin for KnownUnit
impl UnsafeUnpin for KnownUnit
impl UnwindSafe for KnownUnit
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