pub struct ShortcutRegistryEntry { /* private fields */ }Expand description
An entry returned by ShortcutRegistry::add_all that allows the caller to identify the
shortcuts they registered with the ShortcutRegistry through the ShortcutRegistrar.
When the entry is no longer needed, dispose should be called, and the
entry should no longer be used.
Implementations§
Source§impl ShortcutRegistryEntry
impl ShortcutRegistryEntry
Sourcepub fn registry(self: Handle<Self>, app: &App) -> Handle<ShortcutRegistry>
pub fn registry(self: Handle<Self>, app: &App) -> Handle<ShortcutRegistry>
The ShortcutRegistry that this entry was issued by.
Sourcepub fn replace_all(self: Handle<Self>, app: &mut App, value: ShortcutMap)
pub fn replace_all(self: Handle<Self>, app: &mut App, value: ShortcutMap)
Replaces the given shortcut bindings in the ShortcutRegistry that this entry was
created from.
It will assert if this entry has already been disposed.
If two equivalent, but different, ShortcutActivators are added, all of them will be
executed when triggered.
Auto Trait Implementations§
impl !RefUnwindSafe for ShortcutRegistryEntry
impl !Send for ShortcutRegistryEntry
impl !Sync for ShortcutRegistryEntry
impl !UnwindSafe for ShortcutRegistryEntry
impl Forget for ShortcutRegistryEntry
impl Freeze for ShortcutRegistryEntrywhere
NonZero<u32>: Freeze,
PhantomData<fn() -> ShortcutRegistry>: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
impl Move for ShortcutRegistryEntry
impl Unpin for ShortcutRegistryEntry
impl UnsafeUnpin for ShortcutRegistryEntrywhere
NonZeroU32Inner: UnsafeUnpin,
PhantomData<fn() -> ShortcutRegistry>: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: 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