pub struct KeyAccelerator { /* private fields */ }Expand description
A keyboard accelerator and its callback.
Implementations§
Source§impl KeyAccelerator
impl KeyAccelerator
Sourcepub fn new(
key: AcceleratorKey,
modifiers: AcceleratorModifiers,
callback: impl IntoUnitCallback,
) -> Self
pub fn new( key: AcceleratorKey, modifiers: AcceleratorModifiers, callback: impl IntoUnitCallback, ) -> Self
Creates an accelerator for key and modifiers.
Trait Implementations§
Source§impl Clone for KeyAccelerator
impl Clone for KeyAccelerator
Source§fn clone(&self) -> KeyAccelerator
fn clone(&self) -> KeyAccelerator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyAccelerator
impl Debug for KeyAccelerator
Source§impl PartialEq for KeyAccelerator
impl PartialEq for KeyAccelerator
impl StructuralPartialEq for KeyAccelerator
Auto Trait Implementations§
impl !RefUnwindSafe for KeyAccelerator
impl !Send for KeyAccelerator
impl !Sync for KeyAccelerator
impl !UnwindSafe for KeyAccelerator
impl Freeze for KeyAccelerator
impl Unpin for KeyAccelerator
impl UnsafeUnpin for KeyAccelerator
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