pub struct SnippetActiveModeGuard { /* private fields */ }Expand description
RAII guard for SnippetActiveMode. Holds the
ActionHandlerRegistration tokens for the <Tab> / <S-Tab> /
<Esc> handlers (SN.3c.2 added <Esc>); dropping it (on mode
deactivation) drops the tokens, each of which unregisters its
closure from the ActionHandlerRegistry so the chord falls
through to “unhandled” once no snippet is live.
Auto Trait Implementations§
impl !RefUnwindSafe for SnippetActiveModeGuard
impl !UnwindSafe for SnippetActiveModeGuard
impl Freeze for SnippetActiveModeGuard
impl Send for SnippetActiveModeGuard
impl Sync for SnippetActiveModeGuard
impl Unpin for SnippetActiveModeGuard
impl UnsafeUnpin for SnippetActiveModeGuard
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