pub struct ModFiles { /* private fields */ }Implementations§
Source§impl ModFiles
impl ModFiles
pub fn iter_files(&self) -> impl Iterator<Item = &ModFile>
pub fn iter_updates(&self) -> impl Iterator<Item = &FileUpdate>
pub fn into_iter_files(self) -> impl IntoIterator<Item = ModFile>
pub fn into_iter_updates(self) -> impl IntoIterator<Item = FileUpdate>
Sourcepub fn dedup<F>(&self, same: F) -> Vec<ModFile>
pub fn dedup<F>(&self, same: F) -> Vec<ModFile>
Deduplicate entries based on a condition.
Mostly useful for when you want to just get a single throwaway instance of ModFile,
likely for printing out something pertaining to the mod as a whole, rather than every file
located inside it, such as a loop to print what names of mods the user endorses.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModFiles
impl<'de> Deserialize<'de> for ModFiles
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModFiles
impl RefUnwindSafe for ModFiles
impl Send for ModFiles
impl Sync for ModFiles
impl Unpin for ModFiles
impl UnwindSafe for ModFiles
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