Struct twilight_model::user::UserFlags [−][src]
pub struct UserFlags { /* fields omitted */ }Implementations
impl UserFlags[src]
impl UserFlags[src]pub const DISCORD_EMPLOYEE: UserFlags[src]
pub const DISCORD_PARTNER: UserFlags[src]
pub const HYPESQUAD_EVENTS: UserFlags[src]
pub const BUG_HUNTER: UserFlags[src]
pub const HOUSE_BRAVERY: UserFlags[src]
pub const HOUSE_BRILLIANCE: UserFlags[src]
pub const HOUSE_BALANCE: UserFlags[src]
pub const EARLY_SUPPORTER: UserFlags[src]
pub const TEAM_USER: UserFlags[src]
pub const BUG_HUNTER_LEVEL_2: UserFlags[src]
pub const VERIFIED_BOT: UserFlags[src]
pub const VERIFIED_BOT_DEVELOPER: UserFlags[src]
pub fn from_bits(bits: u64) -> Option<UserFlags>[src]
pub fn from_bits(bits: u64) -> Option<UserFlags>[src]Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u64) -> UserFlags[src]
pub const fn from_bits_truncate(bits: u64) -> UserFlags[src]Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u64) -> UserFlags[src]
pub const unsafe fn from_bits_unchecked(bits: u64) -> UserFlags[src]Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn intersects(&self, other: UserFlags) -> bool[src]
pub const fn intersects(&self, other: UserFlags) -> bool[src]Returns true if there are flags common to both self and other.
Trait Implementations
impl BitAndAssign<UserFlags> for UserFlags[src]
impl BitAndAssign<UserFlags> for UserFlags[src]fn bitand_assign(&mut self, other: UserFlags)[src]
fn bitand_assign(&mut self, other: UserFlags)[src]Disables all flags disabled in the set.
impl BitOrAssign<UserFlags> for UserFlags[src]
impl BitOrAssign<UserFlags> for UserFlags[src]fn bitor_assign(&mut self, other: UserFlags)[src]
fn bitor_assign(&mut self, other: UserFlags)[src]Adds the set of flags.
impl BitXorAssign<UserFlags> for UserFlags[src]
impl BitXorAssign<UserFlags> for UserFlags[src]fn bitxor_assign(&mut self, other: UserFlags)[src]
fn bitxor_assign(&mut self, other: UserFlags)[src]Toggles the set of flags.
impl<'de> Deserialize<'de> for UserFlags[src]
impl<'de> Deserialize<'de> for UserFlags[src]fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>[src]Deserialize this value from the given Serde deserializer. Read more
impl Extend<UserFlags> for UserFlags[src]
impl Extend<UserFlags> for UserFlags[src]fn extend<T: IntoIterator<Item = UserFlags>>(&mut self, iterator: T)[src]
fn extend<T: IntoIterator<Item = UserFlags>>(&mut self, iterator: T)[src]Extends a collection with the contents of an iterator. Read more
fn extend_one(&mut self, item: A)[src]
fn extend_one(&mut self, item: A)[src]extend_one)Extends a collection with exactly one element.
fn extend_reserve(&mut self, additional: usize)[src]
fn extend_reserve(&mut self, additional: usize)[src]extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
impl FromIterator<UserFlags> for UserFlags[src]
impl FromIterator<UserFlags> for UserFlags[src]impl Ord for UserFlags[src]
impl Ord for UserFlags[src]impl PartialOrd<UserFlags> for UserFlags[src]
impl PartialOrd<UserFlags> for UserFlags[src]fn partial_cmp(&self, other: &UserFlags) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &UserFlags) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl SubAssign<UserFlags> for UserFlags[src]
impl SubAssign<UserFlags> for UserFlags[src]fn sub_assign(&mut self, other: UserFlags)[src]
fn sub_assign(&mut self, other: UserFlags)[src]Disables all flags enabled in the set.
impl Copy for UserFlags[src]
impl Eq for UserFlags[src]
impl StructuralEq for UserFlags[src]
impl StructuralPartialEq for UserFlags[src]
Auto Trait Implementations
impl RefUnwindSafe for UserFlags
impl Send for UserFlags
impl Sync for UserFlags
impl Unpin for UserFlags
impl UnwindSafe for UserFlags
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,