pub struct PluginCatalog { /* private fields */ }Expand description
Parsed plugin selections kept separate from the Rust linking entries. 与 Rust 链接入口分离的插件选择记录。
Implementations§
Source§impl PluginCatalog
impl PluginCatalog
Sourcepub fn parse(lock: &str) -> Result<PluginCatalog, PluginLockError>
pub fn parse(lock: &str) -> Result<PluginCatalog, PluginLockError>
Parse a plugin lock, refusing unknown schemas and malformed or duplicate lines. 解析插件锁;未知 schema、格式错误或重复的记录一律拒绝。
Sourcepub fn records(&self) -> &[PluginRecord]
pub fn records(&self) -> &[PluginRecord]
The parsed records, in lock order. 解析出的记录,按锁文件中的顺序排列。
Sourcepub fn contains(&self, candidate: &PluginRecord) -> bool
pub fn contains(&self, candidate: &PluginRecord) -> bool
Whether an identical record is already in the catalog. 目录中是否已存在一条完全相同的记录。
Sourcepub fn contains_manifest(&self, manifest: PluginManifest) -> bool
pub fn contains_manifest(&self, manifest: PluginManifest) -> bool
Check an embedded manifest against the lock record for its source. 将嵌入注册面的 manifest 与对应来源锁文件中的记录比对。
Trait Implementations§
Source§impl Clone for PluginCatalog
impl Clone for PluginCatalog
Source§fn clone(&self) -> PluginCatalog
fn clone(&self) -> PluginCatalog
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 PluginCatalog
impl Debug for PluginCatalog
Source§impl Default for PluginCatalog
impl Default for PluginCatalog
Source§fn default() -> PluginCatalog
fn default() -> PluginCatalog
Returns the “default value” for a type. Read more
impl Eq for PluginCatalog
Source§impl PartialEq for PluginCatalog
impl PartialEq for PluginCatalog
impl StructuralPartialEq for PluginCatalog
Auto Trait Implementations§
impl Freeze for PluginCatalog
impl RefUnwindSafe for PluginCatalog
impl Send for PluginCatalog
impl Sync for PluginCatalog
impl Unpin for PluginCatalog
impl UnsafeUnpin for PluginCatalog
impl UnwindSafe for PluginCatalog
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