pub struct ContentFlags(pub u32);Expand description
Content flag constants (bitmask).
Tuple Fields§
§0: u32Implementations§
Source§impl ContentFlags
impl ContentFlags
Sourcepub const HIGH_RES_TEXTURE: Self
pub const HIGH_RES_TEXTURE: Self
High-resolution texture variant.
Sourcepub const LOAD_ON_WINDOWS: Self
pub const LOAD_ON_WINDOWS: Self
Load this file on Windows clients.
Sourcepub const LOAD_ON_MACOS: Self
pub const LOAD_ON_MACOS: Self
Load this file on macOS clients.
Sourcepub const LOW_VIOLENCE: Self
pub const LOW_VIOLENCE: Self
Low-violence regional variant.
Sourcepub const DO_NOT_LOAD: Self
pub const DO_NOT_LOAD: Self
Do not load this file during normal operation.
Sourcepub const UPDATE_PLUGIN: Self
pub const UPDATE_PLUGIN: Self
File belongs to the update plugin.
Sourcepub const NO_NAME_HASH: Self
pub const NO_NAME_HASH: Self
Block does not contain name hashes (FDID-only entries).
Sourcepub const UNCOMMON_RES: Self
pub const UNCOMMON_RES: Self
Uncommon resolution texture variant.
Sourcepub const NO_COMPRESSION: Self
pub const NO_COMPRESSION: Self
File data is stored without compression.
Sourcepub fn has_no_name_hash(self) -> bool
pub fn has_no_name_hash(self) -> bool
Convenience: checks if the NoNameHash flag is set.
Trait Implementations§
Source§impl Clone for ContentFlags
impl Clone for ContentFlags
Source§fn clone(&self) -> ContentFlags
fn clone(&self) -> ContentFlags
Returns a duplicate of the value. Read more
1.0.0 · 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 ContentFlags
impl Debug for ContentFlags
Source§impl Display for ContentFlags
impl Display for ContentFlags
Source§impl PartialEq for ContentFlags
impl PartialEq for ContentFlags
impl Copy for ContentFlags
impl Eq for ContentFlags
impl StructuralPartialEq for ContentFlags
Auto Trait Implementations§
impl Freeze for ContentFlags
impl RefUnwindSafe for ContentFlags
impl Send for ContentFlags
impl Sync for ContentFlags
impl Unpin for ContentFlags
impl UnsafeUnpin for ContentFlags
impl UnwindSafe for ContentFlags
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.