#[repr(u16)]pub enum AutorepeatKind {
Delay = 0,
Period = 1,
}
Expand description
Autorepeat values.
Variants§
Implementations§
Source§impl AutorepeatKind
impl AutorepeatKind
Sourcepub fn iter() -> EnumIterator<Self> ⓘ
pub fn iter() -> EnumIterator<Self> ⓘ
An iterator over all values of the enum.
Source§impl AutorepeatKind
impl AutorepeatKind
Sourcepub fn from_code(code: u16) -> Result<Self, RangeError>
pub fn from_code(code: u16) -> Result<Self, RangeError>
Instantiates the enum from a raw code value.
Trait Implementations§
Source§impl BitmaskTrait for AutorepeatKind
impl BitmaskTrait for AutorepeatKind
Source§type Index = AutorepeatKind
type Index = AutorepeatKind
The type that the bitmask can be indexed by.
Source§fn array_default() -> Self::Array
fn array_default() -> Self::Array
The default empty state of the bitmask.
Source§fn array_slice(array: &Self::Array) -> &[u8] ⓘ
fn array_slice(array: &Self::Array) -> &[u8] ⓘ
A representation of the bitmask as a slice of bytes.
Source§impl Clone for AutorepeatKind
impl Clone for AutorepeatKind
Source§fn clone(&self) -> AutorepeatKind
fn clone(&self) -> AutorepeatKind
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 AutorepeatKind
impl Debug for AutorepeatKind
Source§impl<'de> Deserialize<'de> for AutorepeatKind
impl<'de> Deserialize<'de> for AutorepeatKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AutorepeatKind> for u16
impl From<AutorepeatKind> for u16
Source§fn from(v: AutorepeatKind) -> Self
fn from(v: AutorepeatKind) -> Self
Converts to this type from the input type.
Source§impl Hash for AutorepeatKind
impl Hash for AutorepeatKind
Source§impl IterableEnum for AutorepeatKind
impl IterableEnum for AutorepeatKind
Source§impl Ord for AutorepeatKind
impl Ord for AutorepeatKind
Source§fn cmp(&self, other: &AutorepeatKind) -> Ordering
fn cmp(&self, other: &AutorepeatKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AutorepeatKind
impl PartialEq for AutorepeatKind
Source§impl PartialOrd for AutorepeatKind
impl PartialOrd for AutorepeatKind
Source§impl Serialize for AutorepeatKind
impl Serialize for AutorepeatKind
Source§impl TryFrom<u16> for AutorepeatKind
impl TryFrom<u16> for AutorepeatKind
impl Copy for AutorepeatKind
impl Eq for AutorepeatKind
impl StructuralPartialEq for AutorepeatKind
Auto Trait Implementations§
impl Freeze for AutorepeatKind
impl RefUnwindSafe for AutorepeatKind
impl Send for AutorepeatKind
impl Sync for AutorepeatKind
impl Unpin for AutorepeatKind
impl UnwindSafe for AutorepeatKind
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