#[non_exhaustive]#[repr(u8)]pub enum LengthType {
Idle = 0,
Active = 1,
}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.
Implementations§
Source§impl LengthType
impl LengthType
Trait Implementations§
Source§impl Clone for LengthType
impl Clone for LengthType
Source§fn clone(&self) -> LengthType
fn clone(&self) -> LengthType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LengthType
impl Debug for LengthType
Source§impl Hash for LengthType
impl Hash for LengthType
Source§impl PartialEq for LengthType
impl PartialEq for LengthType
Source§fn eq(&self, other: &LengthType) -> bool
fn eq(&self, other: &LengthType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LengthType
impl Eq for LengthType
impl StructuralPartialEq for LengthType
Auto Trait Implementations§
impl Freeze for LengthType
impl RefUnwindSafe for LengthType
impl Send for LengthType
impl Sync for LengthType
impl Unpin for LengthType
impl UnsafeUnpin for LengthType
impl UnwindSafe for LengthType
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