pub struct BindingStore<A> {
pub builtin_keymap: BindingCatalog<A>,
pub user_keymap: BindingCatalog<A>,
pub runtime_keymap: BindingCatalog<A>,
pub builtin_canvas: BindingCatalog<CanvasAction>,
pub user_canvas: BindingCatalog<CanvasAction>,
pub runtime_canvas: BindingCatalog<CanvasAction>,
/* private fields */
}Fields§
§builtin_keymap: BindingCatalog<A>§user_keymap: BindingCatalog<A>§runtime_keymap: BindingCatalog<A>§builtin_canvas: BindingCatalog<CanvasAction>§user_canvas: BindingCatalog<CanvasAction>§runtime_canvas: BindingCatalog<CanvasAction>Implementations§
Source§impl<A> BindingStore<A>
impl<A> BindingStore<A>
pub fn from_registries( builtin_keymap: &InputRegistry<A>, user_keymap: &InputRegistry<A>, ) -> Self
pub fn effective_registry(&self) -> InputRegistry<A>
pub fn builtin_registry(&self) -> InputRegistry<A>
pub fn report(&self, active_modes: &[impl AsRef<str>]) -> KeybindingReport<A>
Source§impl<A> BindingStore<A>
impl<A> BindingStore<A>
Sourcepub fn with_user_config(
builtin_keymap: &InputRegistry<A>,
config: &KeybindingConfig,
actions: &ActionRegistry<A>,
) -> Result<(Self, InputRegistry<A>, KeybindingReport<A>), KeybindingConfigError>
pub fn with_user_config( builtin_keymap: &InputRegistry<A>, config: &KeybindingConfig, actions: &ActionRegistry<A>, ) -> Result<(Self, InputRegistry<A>, KeybindingReport<A>), KeybindingConfigError>
Build the layered store from a parsed config, resolving [keymap.*]
action names through actions. Unknown names become InvalidEntry
notices rather than aborting the load.
pub fn with_user_config_and_inheritances( builtin_keymap: &InputRegistry<A>, config: &KeybindingConfig, actions: &ActionRegistry<A>, keymap_inheritances: impl IntoIterator<Item = KeybindingInheritance<A>>, ) -> Result<(Self, InputRegistry<A>, KeybindingReport<A>), KeybindingConfigError>
Trait Implementations§
Source§impl<A: Clone> Clone for BindingStore<A>
impl<A: Clone> Clone for BindingStore<A>
Source§fn clone(&self) -> BindingStore<A>
fn clone(&self) -> BindingStore<A>
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<A: Debug> Debug for BindingStore<A>
impl<A: Debug> Debug for BindingStore<A>
Auto Trait Implementations§
impl<A> Freeze for BindingStore<A>
impl<A> RefUnwindSafe for BindingStore<A>where
A: RefUnwindSafe,
impl<A> Send for BindingStore<A>where
A: Send,
impl<A> Sync for BindingStore<A>where
A: Sync,
impl<A> Unpin for BindingStore<A>where
A: Unpin,
impl<A> UnsafeUnpin for BindingStore<A>
impl<A> UnwindSafe for BindingStore<A>where
A: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more