Struct steamworks::PersonaChange
[−]
#[repr(C)]pub struct PersonaChange { /* fields omitted */ }
Methods
impl PersonaChange
const NAME: PersonaChange
NAME: PersonaChange = PersonaChange{bits: 1,}
const STATUS: PersonaChange
STATUS: PersonaChange = PersonaChange{bits: 2,}
const COME_ONLINE: PersonaChange
COME_ONLINE: PersonaChange = PersonaChange{bits: 4,}
const GONE_OFFLINE: PersonaChange
GONE_OFFLINE: PersonaChange = PersonaChange{bits: 8,}
const GAME_PLAYED: PersonaChange
GAME_PLAYED: PersonaChange = PersonaChange{bits: 16,}
const GAME_SERVER: PersonaChange
GAME_SERVER: PersonaChange = PersonaChange{bits: 32,}
const AVATAR: PersonaChange
AVATAR: PersonaChange = PersonaChange{bits: 64,}
const JOINED_SOURCE: PersonaChange
JOINED_SOURCE: PersonaChange = PersonaChange{bits: 128,}
const LEFT_SOURCE: PersonaChange
LEFT_SOURCE: PersonaChange = PersonaChange{bits: 256,}
const RELATIONSHIP_CHANGE: PersonaChange
RELATIONSHIP_CHANGE: PersonaChange = PersonaChange{bits: 512,}
const NAME_FIRST_SET: PersonaChange
NAME_FIRST_SET: PersonaChange = PersonaChange{bits: 1024,}
const FACEBOOK_INFO: PersonaChange
FACEBOOK_INFO: PersonaChange = PersonaChange{bits: 2048,}
const NICKNAME: PersonaChange
NICKNAME: PersonaChange = PersonaChange{bits: 4096,}
const STEAM_LEVEL: PersonaChange
STEAM_LEVEL: PersonaChange = PersonaChange{bits: 8192,}
fn empty() -> PersonaChange
Returns an empty set of flags.
fn all() -> PersonaChange
Returns the set containing all flags.
fn bits(&self) -> i32
Returns the raw value of the flags currently stored.
fn from_bits(bits: i32) -> Option<PersonaChange>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: i32) -> PersonaChange
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
Returns true
if all flags are currently set.
fn intersects(&self, other: PersonaChange) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: PersonaChange) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: PersonaChange)
Inserts the specified flags in-place.
fn remove(&mut self, other: PersonaChange)
Removes the specified flags in-place.
fn toggle(&mut self, other: PersonaChange)
Toggles the specified flags in-place.
fn set(&mut self, other: PersonaChange, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for PersonaChange
impl PartialEq for PersonaChange
fn eq(&self, __arg_0: &PersonaChange) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PersonaChange) -> bool
This method tests for !=
.
impl Eq for PersonaChange
impl Clone for PersonaChange
fn clone(&self) -> PersonaChange
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd for PersonaChange
fn partial_cmp(&self, __arg_0: &PersonaChange) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &PersonaChange) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &PersonaChange) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &PersonaChange) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &PersonaChange) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for PersonaChange
fn cmp(&self, __arg_0: &PersonaChange) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for PersonaChange
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for PersonaChange
impl Binary for PersonaChange
impl Octal for PersonaChange
impl LowerHex for PersonaChange
impl UpperHex for PersonaChange
impl BitOr for PersonaChange
type Output = PersonaChange
The resulting type after applying the |
operator.
fn bitor(self, other: PersonaChange) -> PersonaChange
Returns the union of the two sets of flags.
impl BitOrAssign for PersonaChange
fn bitor_assign(&mut self, other: PersonaChange)
Adds the set of flags.
impl BitXor for PersonaChange
type Output = PersonaChange
The resulting type after applying the ^
operator.
fn bitxor(self, other: PersonaChange) -> PersonaChange
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for PersonaChange
fn bitxor_assign(&mut self, other: PersonaChange)
Toggles the set of flags.
impl BitAnd for PersonaChange
type Output = PersonaChange
The resulting type after applying the &
operator.
fn bitand(self, other: PersonaChange) -> PersonaChange
Returns the intersection between the two sets of flags.
impl BitAndAssign for PersonaChange
fn bitand_assign(&mut self, other: PersonaChange)
Disables all flags disabled in the set.
impl Sub for PersonaChange
type Output = PersonaChange
The resulting type after applying the -
operator.
fn sub(self, other: PersonaChange) -> PersonaChange
Returns the set difference of the two sets of flags.
impl SubAssign for PersonaChange
fn sub_assign(&mut self, other: PersonaChange)
Disables all flags enabled in the set.
impl Not for PersonaChange
type Output = PersonaChange
The resulting type after applying the !
operator.
fn not(self) -> PersonaChange
Returns the complement of this set of flags.
impl Extend<PersonaChange> for PersonaChange
fn extend<T: IntoIterator<Item = PersonaChange>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<PersonaChange> for PersonaChange
fn from_iter<T: IntoIterator<Item = PersonaChange>>(
iterator: T
) -> PersonaChange
iterator: T
) -> PersonaChange
Creates a value from an iterator. Read more