pub struct ModLoader { /* private fields */ }
Expand description
Module loader.
Implementations§
Source§impl ModLoader
impl ModLoader
Sourcepub fn ignore_modversion(self, ignored: bool) -> Self
pub fn ignore_modversion(self, ignored: bool) -> Self
Set whether to avoid checking for a matching modversion.
Sourcepub fn ignore_vermagic(self, ignored: bool) -> Self
pub fn ignore_vermagic(self, ignored: bool) -> Self
Set whether to avoid checking for a matching vermagic.
Sourcepub fn set_parameters(self, params: ModParams) -> Self
pub fn set_parameters(self, params: ModParams) -> Self
Set module parameters to be used at load time.
Sourcepub fn load_module_file(self, modfile: &File) -> Result<()>
pub fn load_module_file(self, modfile: &File) -> Result<()>
Load a module from a file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModLoader
impl RefUnwindSafe for ModLoader
impl Send for ModLoader
impl Sync for ModLoader
impl Unpin for ModLoader
impl UnwindSafe for ModLoader
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