pub struct Package {
pub specification: Specification,
pub definitions: Vec<Definition>,
}Expand description
A loaded provider and its context definitions.
Fields§
§specification: Specification§definitions: Vec<Definition>Implementations§
Source§impl Package
impl Package
Sourcepub fn load(specification: Specification) -> Result<Self>
pub fn load(specification: Specification) -> Result<Self>
Classify root documents before descending into companion resource directories.
Sourcepub fn find_definition(&self, file: &str) -> Result<Option<&Definition>>
pub fn find_definition(&self, file: &str) -> Result<Option<&Definition>>
Find a source path, optionally omitting .md, then an installed skill name.
Auto Trait Implementations§
impl Freeze for Package
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnsafeUnpin for Package
impl UnwindSafe for Package
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