Trait BitValue

Source
pub trait BitValue: Copy + BitValueImpl {
    const MAX: Self;
}
Expand description

Types that can be used in BitSet.

This is a sealed trait with no interface. It is implemented for types in this library that evdev reports to userspace using bitfields.

Required Associated Constants§

Source

const MAX: Self

The largest value that can be stored in a BitSet.

Attempting to insert a value above this into a BitSet will panic.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl BitValue for Abs

Source§

const MAX: Self = Self::MAX

Source§

impl BitValue for EventType

Source§

const MAX: Self = Self::MAX

Source§

impl BitValue for Key

Source§

const MAX: Self = Self::MAX

Source§

impl BitValue for Led

Source§

const MAX: Self = Self::MAX

Source§

impl BitValue for Misc

Source§

const MAX: Self = Self::MAX

Source§

impl BitValue for Rel

Source§

const MAX: Self = Self::MAX

Source§

impl BitValue for Sound

Source§

const MAX: Self = Self::MAX

Source§

impl BitValue for Switch

Source§

const MAX: Self = Self::MAX

Source§

impl BitValue for Feature

Source§

const MAX: Self = Self::MAX

Source§

impl BitValue for InputProp

Source§

const MAX: Self = Self::MAX