Enum input_linux::AutorepeatKind
source · #[repr(u16)]
pub enum AutorepeatKind {
Delay,
Period,
}Expand description
Autorepeat values.
Variants§
Implementations§
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
§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<AutorepeatKind> for AutorepeatKind
impl PartialEq<AutorepeatKind> for AutorepeatKind
source§fn eq(&self, other: &AutorepeatKind) -> bool
fn eq(&self, other: &AutorepeatKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<AutorepeatKind> for AutorepeatKind
impl PartialOrd<AutorepeatKind> for AutorepeatKind
source§fn partial_cmp(&self, other: &AutorepeatKind) -> Option<Ordering>
fn partial_cmp(&self, other: &AutorepeatKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more