pub enum FileKind {
Internal,
Clausewitz,
Jomini,
Vanilla,
LoadedMod(u16),
Mod,
}Expand description
Note that ordering of these enum values matters. Files later in the order will override files of the same name before them, and the warnings about duplicates take that into account.
Variants§
Internal
Internal is for parsing tiger’s own data. The user should not see warnings from this.
Clausewitz
Clausewitz and Jomini are directories bundled with the base game.
Jomini
Vanilla
The base game files.
LoadedMod(u16)
Other mods loaded as directed by the config file. 0-based indexing.
Mod
The mod under scrutiny. Usually, warnings are not emitted unless they touch Mod files.
Trait Implementations§
source§impl Ord for FileKind
impl Ord for FileKind
source§impl PartialEq<FileKind> for FileKind
impl PartialEq<FileKind> for FileKind
source§impl PartialOrd<FileKind> for FileKind
impl PartialOrd<FileKind> for FileKind
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for FileKind
impl Eq for FileKind
impl StructuralEq for FileKind
impl StructuralPartialEq for FileKind
Auto Trait Implementations§
impl RefUnwindSafe for FileKind
impl Send for FileKind
impl Sync for FileKind
impl Unpin for FileKind
impl UnwindSafe for FileKind
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