pub struct Component { /* private fields */ }Implementations§
Source§impl Component
impl Component
pub const DEFAULT_KEY: char = '.'
pub fn new() -> Self
pub fn with_keybindings(self, map: KeyBindingMap) -> Self
pub fn set_keybindings(&mut self, map: KeyBindingMap) -> &mut Self
pub async fn run( &mut self, app: &mut App, context: &mut CommandContext<'_, '_>, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
impl UnwindSafe for Component
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