pub struct ExtensionCommandContext<'a> { /* private fields */ }Expand description
Context provided to an extension command after optional repository activation.
Implementations§
Source§impl<'a> ExtensionCommandContext<'a>
impl<'a> ExtensionCommandContext<'a>
Sourcepub fn repository(&self) -> Option<&'a KnowledgeBaseRepository>
pub fn repository(&self) -> Option<&'a KnowledgeBaseRepository>
Returns the activated repository for repository-dependent commands.
Sourcepub fn bindings(&self) -> Option<&'a ResolvedBindings>
pub fn bindings(&self) -> Option<&'a ResolvedBindings>
Returns semantic bindings for the activated extension set.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ExtensionCommandContext<'a>
impl<'a> !UnwindSafe for ExtensionCommandContext<'a>
impl<'a> Freeze for ExtensionCommandContext<'a>
impl<'a> Send for ExtensionCommandContext<'a>
impl<'a> Sync for ExtensionCommandContext<'a>
impl<'a> Unpin for ExtensionCommandContext<'a>
impl<'a> UnsafeUnpin for ExtensionCommandContext<'a>
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