pub struct LoadableLibList { /* private fields */ }Expand description
Effective directory of host-loadable libraries known to the cookbook.
Implementations§
Source§impl LoadableLibList
impl LoadableLibList
Sourcepub fn new(entries: Vec<LoadableLibEntry>) -> Self
pub fn new(entries: Vec<LoadableLibEntry>) -> Self
Creates a directory from ordered entries.
Sourcepub fn entries(&self) -> &[LoadableLibEntry]
pub fn entries(&self) -> &[LoadableLibEntry]
Borrows the entries in display order.
Sourcepub fn entry(&self, id: &str) -> Option<&LoadableLibEntry>
pub fn entry(&self, id: &str) -> Option<&LoadableLibEntry>
Finds an entry by exact cookbook id.
Sourcepub fn is_loaded(cx: &Cx, id: &str) -> bool
pub fn is_loaded(cx: &Cx, id: &str) -> bool
Whether a matching library is already loaded in cx.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LoadableLibList
impl !UnwindSafe for LoadableLibList
impl Freeze for LoadableLibList
impl Send for LoadableLibList
impl Sync for LoadableLibList
impl Unpin for LoadableLibList
impl UnsafeUnpin for LoadableLibList
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