pub struct StateBits {
pub modifiers: ModifierCombination,
pub leds: LedIndicator,
pub mouse: MouseButtons,
}Expand description
Bitset state used by fork matching logic.
A zero (default) value means “match nothing” — no modifiers, LEDs, or mouse buttons.
Fields§
§modifiers: ModifierCombinationActive modifier combination to match.
leds: LedIndicatorLED indicator state to match (Num/Caps/Scroll Lock, etc.).
mouse: MouseButtonsMouse button state to match.
Implementations§
Source§impl StateBits
impl StateBits
pub const fn new_from( modifiers: ModifierCombination, leds: LedIndicator, mouse: MouseButtons, ) -> Self
Trait Implementations§
impl Copy for StateBits
Source§impl<'de> Deserialize<'de> for StateBits
impl<'de> Deserialize<'de> for StateBits
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
impl Eq for StateBits
Source§impl MaxSize for StateBits
impl MaxSize for StateBits
Source§const POSTCARD_MAX_SIZE: usize
const POSTCARD_MAX_SIZE: usize
The maximum possible size that the serialization of this
type can have, in bytes.
impl StructuralPartialEq for StateBits
Auto Trait Implementations§
impl Freeze for StateBits
impl RefUnwindSafe for StateBits
impl Send for StateBits
impl Sync for StateBits
impl Unpin for StateBits
impl UnsafeUnpin for StateBits
impl UnwindSafe for StateBits
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more