pub struct ExtensionRegistry {
pub extensions: Vec<RegisteredExtension>,
pub command_index: HashMap<String, usize>,
pub hook_index: HashMap<EventName, Vec<usize>>,
}Fields§
§extensions: Vec<RegisteredExtension>§command_index: HashMap<String, usize>§hook_index: HashMap<EventName, Vec<usize>>Implementations§
Source§impl ExtensionRegistry
impl ExtensionRegistry
Sourcepub fn build(
manifest: ExtensionManifestFile,
diagnostics_out: &mut Vec<ExtensionDiagnostic>,
) -> Self
pub fn build( manifest: ExtensionManifestFile, diagnostics_out: &mut Vec<ExtensionDiagnostic>, ) -> Self
Validate manifest and produce an indexed registry. Diagnostics
for skipped/conflicting entries are appended to diagnostics_out;
the registry does not store its own diagnostic list (callers
surface them via /extensions).
Trait Implementations§
Source§impl Clone for ExtensionRegistry
impl Clone for ExtensionRegistry
Source§fn clone(&self) -> ExtensionRegistry
fn clone(&self) -> ExtensionRegistry
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 Debug for ExtensionRegistry
impl Debug for ExtensionRegistry
Source§impl Default for ExtensionRegistry
impl Default for ExtensionRegistry
Source§fn default() -> ExtensionRegistry
fn default() -> ExtensionRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExtensionRegistry
impl RefUnwindSafe for ExtensionRegistry
impl Send for ExtensionRegistry
impl Sync for ExtensionRegistry
impl Unpin for ExtensionRegistry
impl UnsafeUnpin for ExtensionRegistry
impl UnwindSafe for ExtensionRegistry
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