pub struct Bindings<ComponentT> { /* private fields */ }
Implementations
sourceimpl<ComponentT: Component> Bindings<ComponentT>
impl<ComponentT: Component> Bindings<ComponentT>
pub fn is_empty(&self) -> bool
pub fn set_focus(&mut self, focused: bool)
pub fn focused(&self) -> bool
pub fn set_notify(&mut self, notify: bool)
pub fn notify(&self) -> bool
pub fn add<const VARIANT: usize>(
&mut self,
name: impl Into<Cow<'static, str>>,
keys: impl Into<KeyPattern>,
command_fn: impl CommandFn<ComponentT, VARIANT> + 'static
)
pub fn command<const VARIANT: usize>(
&mut self,
name: impl Into<Cow<'static, str>>,
command_fn: impl CommandFn<ComponentT, VARIANT> + 'static
) -> BindingBuilder<'_, ComponentT>
Trait Implementations
Auto Trait Implementations
impl<ComponentT> !RefUnwindSafe for Bindings<ComponentT>
impl<ComponentT> !Send for Bindings<ComponentT>
impl<ComponentT> !Sync for Bindings<ComponentT>
impl<ComponentT> Unpin for Bindings<ComponentT>
impl<ComponentT> !UnwindSafe for Bindings<ComponentT>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more