pub struct ModFile { /* private fields */ }Expand description
Representation of a .mod file and its contents.
Implementations§
source§impl ModFile
impl ModFile
sourcepub fn read(pathname: &Path) -> Result<Self>
pub fn read(pathname: &Path) -> Result<Self>
Take the path to a .mod file, validate it, and return its parsed structure.
sourcepub fn replace_paths(&self) -> Vec<PathBuf>
pub fn replace_paths(&self) -> Vec<PathBuf>
Return the paths that this mod fully replaces, according to its .mod file.
sourcepub fn display_name(&self) -> Option<String>
pub fn display_name(&self) -> Option<String>
The mod’s name in human-friendly form, if available.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ModFile
impl Send for ModFile
impl Sync for ModFile
impl Unpin for ModFile
impl UnwindSafe for ModFile
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