#[repr(i32)]pub enum EDepotFileFlag {
UserConfig = 1,
VersionedUserConfig = 2,
Encrypted = 4,
ReadOnly = 8,
Hidden = 16,
Executable = 32,
Directory = 64,
CustomExecutable = 128,
InstallScript = 256,
Symlink = 512,
}Expand description
The EDepotFileFlag enumeration.
A bit flag set: the variants can be combined with a bitwise or.
Source: lang/steammsg.steamd.
Variants§
UserConfig = 1
VersionedUserConfig = 2
Encrypted = 4
ReadOnly = 8
Hidden = 16
Executable = 32
Directory = 64
CustomExecutable = 128
InstallScript = 256
Symlink = 512
Implementations§
Source§impl EDepotFileFlag
impl EDepotFileFlag
Sourcepub const ALL: &'static [EDepotFileFlag]
pub const ALL: &'static [EDepotFileFlag]
Every variant of EDepotFileFlag.
Sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
True when every bit of other is set in this flag set.
Sourcepub const fn intersect(self, other: Self) -> i32
pub const fn intersect(self, other: Self) -> i32
The bitwise and of two flag sets, as a raw value.
Sourcepub fn from_value(value: i32) -> Option<Self>
pub fn from_value(value: i32) -> Option<Self>
Builds a variant from its numeric value.
When several variants share a value, the first declared one is returned.
Trait Implementations§
Source§impl Clone for EDepotFileFlag
impl Clone for EDepotFileFlag
impl Copy for EDepotFileFlag
Source§impl Debug for EDepotFileFlag
impl Debug for EDepotFileFlag
impl Eq for EDepotFileFlag
Source§impl From<EDepotFileFlag> for i32
impl From<EDepotFileFlag> for i32
Source§fn from(value: EDepotFileFlag) -> i32
fn from(value: EDepotFileFlag) -> i32
Converts to this type from the input type.
Source§impl FromKeyValue for EDepotFileFlag
impl FromKeyValue for EDepotFileFlag
Source§fn from_key_value(text: &str) -> Option<Self>
fn from_key_value(text: &str) -> Option<Self>
Parses
text, or None if it isn’t a valid value.Source§impl Hash for EDepotFileFlag
impl Hash for EDepotFileFlag
Source§impl Ord for EDepotFileFlag
impl Ord for EDepotFileFlag
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EDepotFileFlag
impl PartialEq for EDepotFileFlag
Source§impl PartialOrd for EDepotFileFlag
impl PartialOrd for EDepotFileFlag
impl StructuralPartialEq for EDepotFileFlag
Source§impl TryFrom<i32> for EDepotFileFlag
impl TryFrom<i32> for EDepotFileFlag
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§impl TryFrom<u32> for EDepotFileFlag
impl TryFrom<u32> for EDepotFileFlag
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for EDepotFileFlag
impl RefUnwindSafe for EDepotFileFlag
impl Send for EDepotFileFlag
impl Sync for EDepotFileFlag
impl Unpin for EDepotFileFlag
impl UnsafeUnpin for EDepotFileFlag
impl UnwindSafe for EDepotFileFlag
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.