Struct likemod::ModLoader [−][src]
pub struct ModLoader { /* fields omitted */ }
Module loader.
Methods
impl ModLoader
[src]
impl ModLoader
pub fn new() -> Self
[src]
pub fn new() -> Self
Create a new default ModLoader
.
pub fn ignore_modversion(self, ignored: bool) -> Self
[src]
pub fn ignore_modversion(self, ignored: bool) -> Self
Set whether to avoid checking for a matching modversion.
pub fn ignore_vermagic(self, ignored: bool) -> Self
[src]
pub fn ignore_vermagic(self, ignored: bool) -> Self
Set whether to avoid checking for a matching vermagic.
pub fn set_parameters(self, params: ModParams) -> Self
[src]
pub fn set_parameters(self, params: ModParams) -> Self
Set module parameters to be used at load time.
pub fn load_module_file(self, modfile: &File) -> Result<()>
[src]
pub fn load_module_file(self, modfile: &File) -> Result<()>
Load a module from a file.
Trait Implementations
impl Debug for ModLoader
[src]
impl Debug for ModLoader
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for ModLoader
[src]
impl Default for ModLoader