pub struct WindowCommand<B: Backend> {
pub activator_key: KeyCode,
pub action: Box<dyn Fn(&mut State) -> Option<Window<B>>>,
}
Fields§
§activator_key: KeyCode
§action: Box<dyn Fn(&mut State) -> Option<Window<B>>>
Implementations§
Source§impl<B: Backend> WindowCommand<B>
impl<B: Backend> WindowCommand<B>
pub fn new_char_command( activator: char, command: Box<dyn Fn(&mut State) -> Option<Window<B>>>, ) -> WindowCommand<B>
Auto Trait Implementations§
impl<B> Freeze for WindowCommand<B>
impl<B> !RefUnwindSafe for WindowCommand<B>
impl<B> !Send for WindowCommand<B>
impl<B> !Sync for WindowCommand<B>
impl<B> Unpin for WindowCommand<B>
impl<B> !UnwindSafe for WindowCommand<B>
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