#[repr(i32)]pub enum EFriendFlags {
Show 13 variants
None = 0,
Blocked = 1,
FriendshipRequested = 2,
Immediate = 4,
ClanMember = 8,
OnGameServer = 16,
RequestingFriendship = 128,
RequestingInfo = 256,
Ignored = 512,
IgnoredFriend = 1_024,
Suggested = 2_048,
ChatMember = 4_096,
FlagAll = 65_535,
}Expand description
The EFriendFlags enumeration.
A bit flag set: the variants can be combined with a bitwise or.
Source: lang/steammsg.steamd.
Variants§
None = 0
Blocked = 1
FriendshipRequested = 2
Immediate = 4
ClanMember = 8
OnGameServer = 16
RequestingFriendship = 128
RequestingInfo = 256
Ignored = 512
IgnoredFriend = 1_024
Suggested = 2_048
ChatMember = 4_096
FlagAll = 65_535
Implementations§
Source§impl EFriendFlags
impl EFriendFlags
Sourcepub const ALL: &'static [EFriendFlags]
pub const ALL: &'static [EFriendFlags]
Every variant of EFriendFlags.
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 EFriendFlags
impl Clone for EFriendFlags
impl Copy for EFriendFlags
Source§impl Debug for EFriendFlags
impl Debug for EFriendFlags
impl Eq for EFriendFlags
Source§impl From<EFriendFlags> for i32
impl From<EFriendFlags> for i32
Source§fn from(value: EFriendFlags) -> i32
fn from(value: EFriendFlags) -> i32
Converts to this type from the input type.
Source§impl Hash for EFriendFlags
impl Hash for EFriendFlags
Source§impl Ord for EFriendFlags
impl Ord for EFriendFlags
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 EFriendFlags
impl PartialEq for EFriendFlags
Source§impl PartialOrd for EFriendFlags
impl PartialOrd for EFriendFlags
impl StructuralPartialEq for EFriendFlags
Source§impl TryFrom<i32> for EFriendFlags
impl TryFrom<i32> for EFriendFlags
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§impl TryFrom<u32> for EFriendFlags
impl TryFrom<u32> for EFriendFlags
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for EFriendFlags
impl RefUnwindSafe for EFriendFlags
impl Send for EFriendFlags
impl Sync for EFriendFlags
impl Unpin for EFriendFlags
impl UnsafeUnpin for EFriendFlags
impl UnwindSafe for EFriendFlags
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.