Skip to main content

SplitFilePresence

Struct SplitFilePresence 

Source
pub struct SplitFilePresence {
    pub has_root: bool,
    pub has_tex0: bool,
    pub has_tex1: bool,
    pub has_obj0: bool,
    pub has_obj1: bool,
    pub has_lod: bool,
}
Expand description

Bitmask indicating which split files are present on the filesystem.

Returned by SplitFileSet::verify_existence to indicate which files actually exist for a given ADT tile.

§Detection Patterns

  • Pre-Cataclysm: has_root only
  • Cataclysm: has_root, has_tex0, has_obj0 (minimum)
  • Legion+: Above plus potentially has_lod
  • BfA+: tex1 typically absent (deprecated)

Fields§

§has_root: bool

Root file exists (.adt).

§has_tex0: bool

Primary texture file exists (_tex0.adt).

§has_tex1: bool

Secondary texture file exists (_tex1.adt).

§has_obj0: bool

Primary object file exists (_obj0.adt).

§has_obj1: bool

Secondary object file exists (_obj1.adt).

§has_lod: bool

LOD file exists (_lod.adt).

Implementations§

Source§

impl SplitFilePresence

Source

pub const fn is_complete_cataclysm_set(&self) -> bool

Check if this represents a complete Cataclysm+ split file set.

Requires root, tex0, and obj0 to be present.

§Returns

true if minimum required files exist for Cataclysm+ split architecture.

Source

pub const fn is_monolithic(&self) -> bool

Check if this represents a pre-Cataclysm monolithic file.

Only root file exists, no split files.

§Returns

true if only root exists (monolithic ADT).

Source

pub const fn has_split_files(&self) -> bool

Check if any split files are present.

§Returns

true if at least one split file (tex/obj/lod) exists.

Source

pub const fn count(&self) -> usize

Count how many files are present.

§Returns

Number of files that exist (0-6).

Trait Implementations§

Source§

impl Clone for SplitFilePresence

Source§

fn clone(&self) -> SplitFilePresence

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SplitFilePresence

Source§

impl Debug for SplitFilePresence

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for SplitFilePresence

Source§

impl Hash for SplitFilePresence

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for SplitFilePresence

Source§

fn eq(&self, other: &SplitFilePresence) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for SplitFilePresence

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.