[−][src]Trait input_linux::bitmask::BitmaskTrait
A generic trait that can be used to index by a given type into a set of bits.
Associated Types
type Array: Sized[src]
The underlying array storage data type.
type Index: Copy + IterableEnum[src]
The type that the bitmask can be indexed by.
Associated Constants
Loading content...Required methods
pub fn array_default() -> Self::Array[src]
The default empty state of the bitmask.
pub fn array_slice(array: &Self::Array) -> &[u8][src]
A representation of the bitmask as a slice of bytes.
pub fn array_slice_mut(array: &mut Self::Array) -> &mut [u8][src]
A mutable representation of the bitmask as a slice of bytes.
pub fn index(index: Self::Index) -> usize[src]
Computes a normalized index value.
Provided methods
pub fn index_valid(_array: &Self::Array, _index: Self::Index) -> bool[src]
Validates whether a given index is valid and in range for the bitmask.
Dynamically allocated bitmasks may not be large enough to contain all indices.