Trait input_linux::bitmask::BitmaskTrait
[−]
[src]
pub trait BitmaskTrait { type Array: Sized; type Index: Copy + IterableEnum; fn array_default() -> Self::Array; fn array_slice(array: &Self::Array) -> &[u8]; fn array_slice_mut(array: &mut Self::Array) -> &mut [u8]; fn index(index: Self::Index) -> usize; fn index_valid(_array: &Self::Array, _index: Self::Index) -> bool { ... } }
Associated Types
type Array: Sized
type Index: Copy + IterableEnum
Required Methods
fn array_default() -> Self::Array
fn array_slice(array: &Self::Array) -> &[u8]
fn array_slice_mut(array: &mut Self::Array) -> &mut [u8]
fn index(index: Self::Index) -> usize
Provided Methods
fn index_valid(_array: &Self::Array, _index: Self::Index) -> bool
Implementations on Foreign Types
impl BitmaskTrait for Vec<u8>
[src]
Implementors
impl BitmaskTrait for InputProperty type Array = [u8; 4]; type Index = InputProperty;
impl BitmaskTrait for EventKind type Array = [u8; 4]; type Index = EventKind;
impl BitmaskTrait for UInputKind type Array = [u8; 1]; type Index = UInputKind;
impl BitmaskTrait for SynchronizeKind type Array = [u8; 2]; type Index = SynchronizeKind;
impl BitmaskTrait for RelativeAxis type Array = [u8; 2]; type Index = RelativeAxis;
impl BitmaskTrait for AbsoluteAxis type Array = [u8; 8]; type Index = AbsoluteAxis;
impl BitmaskTrait for SwitchKind type Array = [u8; 2]; type Index = SwitchKind;
impl BitmaskTrait for MiscKind type Array = [u8; 1]; type Index = MiscKind;
impl BitmaskTrait for LedKind type Array = [u8; 2]; type Index = LedKind;
impl BitmaskTrait for AutorepeatKind type Array = [u8; 1]; type Index = AutorepeatKind;
impl BitmaskTrait for SoundKind type Array = [u8; 1]; type Index = SoundKind;
impl BitmaskTrait for Key type Array = [u8; 96]; type Index = Key;