Enum linux_video_core::FlashLedMode
source · #[non_exhaustive]#[repr(u32)]pub enum FlashLedMode {
None,
Flash,
Torch,
}
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.
Methods from Deref<Target = u32>§
pub const MIN: u32 = 0u32
pub const MAX: u32 = 4_294_967_295u32
pub const BITS: u32 = 32u32
Trait Implementations§
source§impl AsRef<u32> for FlashLedMode
impl AsRef<u32> for FlashLedMode
source§impl Clone for FlashLedMode
impl Clone for FlashLedMode
source§fn clone(&self) -> FlashLedMode
fn clone(&self) -> FlashLedMode
Returns a copy 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 FlashLedMode
impl Debug for FlashLedMode
source§impl Deref for FlashLedMode
impl Deref for FlashLedMode
source§impl Display for FlashLedMode
impl Display for FlashLedMode
source§impl From<FlashLedMode> for u32
impl From<FlashLedMode> for u32
source§fn from(data: FlashLedMode) -> Self
fn from(data: FlashLedMode) -> Self
Converts to this type from the input type.
source§impl PartialEq<FlashLedMode> for FlashLedMode
impl PartialEq<FlashLedMode> for FlashLedMode
source§fn eq(&self, other: &FlashLedMode) -> bool
fn eq(&self, other: &FlashLedMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for FlashLedMode
impl TryFrom<u32> for FlashLedMode
impl Copy for FlashLedMode
impl Eq for FlashLedMode
impl StructuralEq for FlashLedMode
impl StructuralPartialEq for FlashLedMode
Auto Trait Implementations§
impl RefUnwindSafe for FlashLedMode
impl Send for FlashLedMode
impl Sync for FlashLedMode
impl Unpin for FlashLedMode
impl UnwindSafe for FlashLedMode
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