#[non_exhaustive]#[repr(u8)]pub enum FnInversionState {
Off = 0,
On = 1,
}Expand description
Function-key inversion state.
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§
Source§impl Clone for FnInversionState
impl Clone for FnInversionState
Source§fn clone(&self) -> FnInversionState
fn clone(&self) -> FnInversionState
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 moreimpl Copy for FnInversionState
Source§impl Debug for FnInversionState
impl Debug for FnInversionState
impl Eq for FnInversionState
Source§impl From<FnInversionState> for u8
impl From<FnInversionState> for u8
Source§fn from(enum_value: FnInversionState) -> Self
fn from(enum_value: FnInversionState) -> Self
Converts to this type from the input type.
Source§impl From<bool> for FnInversionState
impl From<bool> for FnInversionState
Source§impl Hash for FnInversionState
impl Hash for FnInversionState
Source§impl PartialEq for FnInversionState
impl PartialEq for FnInversionState
impl StructuralPartialEq for FnInversionState
Source§impl TryFrom<u8> for FnInversionState
impl TryFrom<u8> for FnInversionState
Source§type Error = TryFromPrimitiveError<FnInversionState>
type Error = TryFromPrimitiveError<FnInversionState>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for FnInversionState
impl TryFromPrimitive for FnInversionState
const NAME: &'static str = "FnInversionState"
type Primitive = u8
type Error = TryFromPrimitiveError<FnInversionState>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for FnInversionState
impl RefUnwindSafe for FnInversionState
impl Send for FnInversionState
impl Sync for FnInversionState
impl Unpin for FnInversionState
impl UnsafeUnpin for FnInversionState
impl UnwindSafe for FnInversionState
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