pub struct Modifiers(/* private fields */);Implementations§
Source§impl Modifiers
impl Modifiers
pub const ALT: Self
pub const CONTROL: Self
pub const NONE: Self
pub const SHIFT: Self
pub const SUPER: Self
pub const fn new(shift: bool, control: bool, alt: bool, super_key: bool) -> Self
pub const fn contains(self, modifiers: Self) -> bool
pub const fn shift(self) -> bool
pub const fn control(self) -> bool
pub const fn alt(self) -> bool
pub const fn super_key(self) -> bool
Trait Implementations§
impl Copy for Modifiers
impl Eq for Modifiers
impl StructuralPartialEq for Modifiers
Auto Trait Implementations§
impl Forget for Modifiers
impl Freeze for Modifiers
impl Move for Modifiers
impl RefUnwindSafe for Modifiers
impl Send for Modifiers
impl Sync for Modifiers
impl Unpin for Modifiers
impl UnsafeUnpin for Modifiers
impl UnwindSafe for Modifiers
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