pub struct KnowledgePackEntry { /* private fields */ }Implementations§
Source§impl KnowledgePackEntry
impl KnowledgePackEntry
pub fn new( knowledge_ref: KnowledgeRef, pack: impl KnowledgePack + 'static, ) -> Self
pub fn library( pack_name: impl AsRef<str>, pack: impl KnowledgePack + 'static, ) -> Result<Self>
pub fn package( package_name: impl AsRef<str>, pack: impl KnowledgePack + 'static, ) -> Result<Self>
pub fn local( pack_name: impl AsRef<str>, pack: impl KnowledgePack + 'static, ) -> Result<Self>
pub fn knowledge_ref(&self) -> &KnowledgeRef
pub fn selector(&self) -> String
pub fn pack(&self) -> &Arc<dyn KnowledgePack>
Trait Implementations§
Source§impl Clone for KnowledgePackEntry
impl Clone for KnowledgePackEntry
Source§fn clone(&self) -> KnowledgePackEntry
fn clone(&self) -> KnowledgePackEntry
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for KnowledgePackEntry
impl !UnwindSafe for KnowledgePackEntry
impl Freeze for KnowledgePackEntry
impl Send for KnowledgePackEntry
impl Sync for KnowledgePackEntry
impl Unpin for KnowledgePackEntry
impl UnsafeUnpin for KnowledgePackEntry
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