pub struct PluginCatalogIndex { /* private fields */ }Expand description
A read-only, deterministic index over a validated catalog.
The index stores only offsets into the value-owned PluginCatalog. No
file descriptor, library handle, worker, queue, or media buffer can enter
this type.
Implementations§
Source§impl PluginCatalogIndex
impl PluginCatalogIndex
Sourcepub fn from_catalog(
catalog: PluginCatalog,
) -> Result<Self, PluginCatalogImportError>
pub fn from_catalog( catalog: PluginCatalog, ) -> Result<Self, PluginCatalogImportError>
Builds an index from a validated catalog without touching artifact paths.
pub fn catalog(&self) -> &PluginCatalog
pub fn records(&self) -> &[PluginCatalogRecord]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn fingerprint(&self) -> &str
pub fn get(&self, identity: &str) -> Option<&PluginCatalogRecord>
pub fn find( &self, plugin_id: &str, ) -> impl Iterator<Item = &PluginCatalogRecord>
Trait Implementations§
Source§impl Clone for PluginCatalogIndex
impl Clone for PluginCatalogIndex
Source§fn clone(&self) -> PluginCatalogIndex
fn clone(&self) -> PluginCatalogIndex
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 PluginCatalogIndex
impl Debug for PluginCatalogIndex
Source§impl Default for PluginCatalogIndex
impl Default for PluginCatalogIndex
impl Eq for PluginCatalogIndex
Source§impl PartialEq for PluginCatalogIndex
impl PartialEq for PluginCatalogIndex
impl StructuralPartialEq for PluginCatalogIndex
Auto Trait Implementations§
impl Freeze for PluginCatalogIndex
impl RefUnwindSafe for PluginCatalogIndex
impl Send for PluginCatalogIndex
impl Sync for PluginCatalogIndex
impl Unpin for PluginCatalogIndex
impl UnsafeUnpin for PluginCatalogIndex
impl UnwindSafe for PluginCatalogIndex
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.