pub struct KeyAction {
pub name: String,
pub binding: KeyBinding,
pub context: InputContext,
pub allow_repeat: bool,
pub callback: Option<Box<dyn FnMut()>>,
}Expand description
One named action: trigger, focus context, repeat policy, and callback.
Donor: oa::KeyAction.
Fields§
§name: String§binding: KeyBinding§context: InputContext§allow_repeat: bool§callback: Option<Box<dyn FnMut()>>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for KeyAction
impl !Send for KeyAction
impl !Sync for KeyAction
impl !UnwindSafe for KeyAction
impl Forget for KeyAction
impl Freeze for KeyAction
impl Move for KeyAction
impl Unpin for KeyAction
impl UnsafeUnpin for KeyActionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const dyn FnMut() is !null: UnsafeUnpin,
PhantomData<dyn FnMut()>: UnsafeUnpin,
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