pub enum ModFootprint {
Directory(String),
File(String),
}Expand description
The filesystem footprint of a mod discovered by a game-specific filesystem scanner.
Game scanners produce mod_ids in schemes like cet/<name>,
archive/<stem>, etc. To correlate those rows against a Wabbajack
manifest’s install directives, we need to know what portion of the
game directory each mod owns. That’s what this enum expresses.
ModFootprint::Directory— the mod owns everything under a subtree of the game install (e.g.bin/x64/plugins/cyber_engine_tweaks/mods/<name>/).ModFootprint::File— the mod is a single file (e.g. a loose.archiveunderarchive/pc/mod/).
Paths are lowercased, use forward slashes, and (for Directory)
end with a trailing /. This matches the conventions used by
dir_prefixes and the manifest-covered-dirs set
built in modde-cli::commands::scan.
Variants§
Directory(String)
A directory subtree owned by the mod. Compared against the set of directories the manifest writes into.
File(String)
A single file owned by the mod. Compared against the set of
To paths in the manifest’s install directives.
Trait Implementations§
Source§impl Clone for ModFootprint
impl Clone for ModFootprint
Source§fn clone(&self) -> ModFootprint
fn clone(&self) -> ModFootprint
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 moreSource§impl Debug for ModFootprint
impl Debug for ModFootprint
Source§impl PartialEq for ModFootprint
impl PartialEq for ModFootprint
Source§fn eq(&self, other: &ModFootprint) -> bool
fn eq(&self, other: &ModFootprint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ModFootprint
impl StructuralPartialEq for ModFootprint
Auto Trait Implementations§
impl Freeze for ModFootprint
impl RefUnwindSafe for ModFootprint
impl Send for ModFootprint
impl Sync for ModFootprint
impl Unpin for ModFootprint
impl UnsafeUnpin for ModFootprint
impl UnwindSafe for ModFootprint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.