[−][src]Enum input_linux::EventKind
Event types
Variants
Implementations
impl EventKind
[src]
pub fn from_type(code: u16) -> Result<Self, RangeError>
[src]
Instantiate from a type code.
pub fn count(&self) -> Result<usize, ()>
[src]
Returns the maximum known number of codes for the current event
pub fn count_bits(&self) -> Result<usize, ()>
[src]
Like count()
but with an exception for ::Synchronize
representing
EventKind
, matching the behaviour of EVIOCGBIT
and EVIOCGMASK
.
If you're using a bitmask you probably want this.
impl EventKind
[src]
pub const COUNT: usize
[src]
The maximum valid value.
pub fn iter() -> EnumIterator<Self>ⓘNotable traits for EnumIterator<T>
impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
[src]
Notable traits for EnumIterator<T>
impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
An iterator over all values of the enum.
pub fn bitmask() -> Bitmask<Self>
[src]
A bitmask that can contain all values of the enum.
Trait Implementations
impl BitmaskTrait for EventKind
[src]
type Array = [u8; 4]
The underlying array storage data type.
type Index = EventKind
The type that the bitmask can be indexed by.
pub const ZERO: Self::Array
[src]
pub fn array_default() -> Self::Array
[src]
pub fn array_slice(array: &Self::Array) -> &[u8]
[src]
pub fn array_slice_mut(array: &mut Self::Array) -> &mut [u8]
[src]
pub fn index(index: Self::Index) -> usize
[src]
pub fn index_valid(_array: &Self::Array, _index: Self::Index) -> bool
[src]
impl Clone for EventKind
[src]
impl Copy for EventKind
[src]
impl Debug for EventKind
[src]
impl Eq for EventKind
[src]
impl From<EventKind> for u16
[src]
impl Hash for EventKind
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl IterableEnum for EventKind
[src]
pub fn iter_next(v: usize) -> Option<(usize, Self)>
[src]
pub fn iter() -> EnumIterator<Self>ⓘNotable traits for EnumIterator<T>
impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
[src]
Notable traits for EnumIterator<T>
impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
impl Ord for EventKind
[src]
pub fn cmp(&self, other: &EventKind) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<EventKind> for EventKind
[src]
pub fn eq(&self, other: &EventKind) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<EventKind> for EventKind
[src]
pub fn partial_cmp(&self, other: &EventKind) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for EventKind
[src]
impl StructuralPartialEq for EventKind
[src]
impl TryFrom<u16> for EventKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnwindSafe for EventKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,