#[repr(i32)]pub enum EUCMFilePrivacyState {
Invalid = -1,
Private = 2,
FriendsOnly = 4,
Public = 8,
Unlisted = 16,
All = 30,
}Expand description
The EUCMFilePrivacyState enumeration.
A bit flag set: the variants can be combined with a bitwise or.
Source: lang/steammsg.steamd.
Variants§
Implementations§
Source§impl EUCMFilePrivacyState
impl EUCMFilePrivacyState
Sourcepub const ALL: &'static [EUCMFilePrivacyState]
pub const ALL: &'static [EUCMFilePrivacyState]
Every variant of EUCMFilePrivacyState.
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 EUCMFilePrivacyState
impl Clone for EUCMFilePrivacyState
impl Copy for EUCMFilePrivacyState
Source§impl Debug for EUCMFilePrivacyState
impl Debug for EUCMFilePrivacyState
impl Eq for EUCMFilePrivacyState
Source§impl From<EUCMFilePrivacyState> for i32
impl From<EUCMFilePrivacyState> for i32
Source§fn from(value: EUCMFilePrivacyState) -> i32
fn from(value: EUCMFilePrivacyState) -> i32
Converts to this type from the input type.
Source§impl Hash for EUCMFilePrivacyState
impl Hash for EUCMFilePrivacyState
Source§impl Ord for EUCMFilePrivacyState
impl Ord for EUCMFilePrivacyState
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 EUCMFilePrivacyState
impl PartialEq for EUCMFilePrivacyState
Source§impl PartialOrd for EUCMFilePrivacyState
impl PartialOrd for EUCMFilePrivacyState
impl StructuralPartialEq for EUCMFilePrivacyState
Source§impl TryFrom<i32> for EUCMFilePrivacyState
impl TryFrom<i32> for EUCMFilePrivacyState
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for EUCMFilePrivacyState
impl RefUnwindSafe for EUCMFilePrivacyState
impl Send for EUCMFilePrivacyState
impl Sync for EUCMFilePrivacyState
impl Unpin for EUCMFilePrivacyState
impl UnsafeUnpin for EUCMFilePrivacyState
impl UnwindSafe for EUCMFilePrivacyState
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.