Struct LoadedMods
pub struct LoadedMods { /* private fields */ }Expand description
Read-only view of the startup package inventory, shared: cloning it copies no package.
Implementations§
§impl LoadedMods
impl LoadedMods
pub fn iter(&self) -> impl Iterator<Item = &PackageInfo>
pub fn iter(&self) -> impl Iterator<Item = &PackageInfo>
Packages in dispatch order.
pub fn get(&self, id: &str) -> Option<&PackageInfo>
pub fn get(&self, id: &str) -> Option<&PackageInfo>
Find a package by ID. This linear lookup is intended for registration, not hot paths.
Trait Implementations§
§impl Clone for LoadedMods
impl Clone for LoadedMods
§fn clone(&self) -> LoadedMods
fn clone(&self) -> LoadedMods
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 more§impl Wire for LoadedMods
impl Wire for LoadedMods
Auto Trait Implementations§
impl Freeze for LoadedMods
impl RefUnwindSafe for LoadedMods
impl Send for LoadedMods
impl Sync for LoadedMods
impl Unpin for LoadedMods
impl UnsafeUnpin for LoadedMods
impl UnwindSafe for LoadedMods
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