pub struct InternalAbstractGeneratorFlags { /* private fields */ }Expand description
If the data source is the internal abstract generator, the following flags are used.
Implementations§
Source§impl InternalAbstractGeneratorFlags
impl InternalAbstractGeneratorFlags
pub const PLAYING: InternalAbstractGeneratorFlags
Sourcepub const fn empty() -> InternalAbstractGeneratorFlags
pub const fn empty() -> InternalAbstractGeneratorFlags
Returns an empty set of flags
Sourcepub const fn all() -> InternalAbstractGeneratorFlags
pub const fn all() -> InternalAbstractGeneratorFlags
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u16) -> Option<InternalAbstractGeneratorFlags>
pub fn from_bits(bits: u16) -> Option<InternalAbstractGeneratorFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u16) -> InternalAbstractGeneratorFlags
pub const fn from_bits_truncate(bits: u16) -> InternalAbstractGeneratorFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(
bits: u16,
) -> InternalAbstractGeneratorFlags
pub const unsafe fn from_bits_unchecked( bits: u16, ) -> InternalAbstractGeneratorFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: InternalAbstractGeneratorFlags) -> bool
pub const fn intersects(&self, other: InternalAbstractGeneratorFlags) -> bool
Returns true if there are flags common to both self and other.
Sourcepub const fn contains(&self, other: InternalAbstractGeneratorFlags) -> bool
pub const fn contains(&self, other: InternalAbstractGeneratorFlags) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: InternalAbstractGeneratorFlags)
pub fn insert(&mut self, other: InternalAbstractGeneratorFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: InternalAbstractGeneratorFlags)
pub fn remove(&mut self, other: InternalAbstractGeneratorFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: InternalAbstractGeneratorFlags)
pub fn toggle(&mut self, other: InternalAbstractGeneratorFlags)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: InternalAbstractGeneratorFlags, value: bool)
pub fn set(&mut self, other: InternalAbstractGeneratorFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl BitAnd for InternalAbstractGeneratorFlags
impl BitAnd for InternalAbstractGeneratorFlags
Source§fn bitand(
self,
other: InternalAbstractGeneratorFlags,
) -> InternalAbstractGeneratorFlags
fn bitand( self, other: InternalAbstractGeneratorFlags, ) -> InternalAbstractGeneratorFlags
Returns the intersection between the two sets of flags.
Source§type Output = InternalAbstractGeneratorFlags
type Output = InternalAbstractGeneratorFlags
& operator.Source§impl BitAndAssign for InternalAbstractGeneratorFlags
impl BitAndAssign for InternalAbstractGeneratorFlags
Source§fn bitand_assign(&mut self, other: InternalAbstractGeneratorFlags)
fn bitand_assign(&mut self, other: InternalAbstractGeneratorFlags)
Disables all flags disabled in the set.
Source§impl BitOr for InternalAbstractGeneratorFlags
impl BitOr for InternalAbstractGeneratorFlags
Source§fn bitor(
self,
other: InternalAbstractGeneratorFlags,
) -> InternalAbstractGeneratorFlags
fn bitor( self, other: InternalAbstractGeneratorFlags, ) -> InternalAbstractGeneratorFlags
Returns the union of the two sets of flags.
Source§type Output = InternalAbstractGeneratorFlags
type Output = InternalAbstractGeneratorFlags
| operator.Source§impl BitOrAssign for InternalAbstractGeneratorFlags
impl BitOrAssign for InternalAbstractGeneratorFlags
Source§fn bitor_assign(&mut self, other: InternalAbstractGeneratorFlags)
fn bitor_assign(&mut self, other: InternalAbstractGeneratorFlags)
Adds the set of flags.
Source§impl BitXor for InternalAbstractGeneratorFlags
impl BitXor for InternalAbstractGeneratorFlags
Source§fn bitxor(
self,
other: InternalAbstractGeneratorFlags,
) -> InternalAbstractGeneratorFlags
fn bitxor( self, other: InternalAbstractGeneratorFlags, ) -> InternalAbstractGeneratorFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = InternalAbstractGeneratorFlags
type Output = InternalAbstractGeneratorFlags
^ operator.Source§impl BitXorAssign for InternalAbstractGeneratorFlags
impl BitXorAssign for InternalAbstractGeneratorFlags
Source§fn bitxor_assign(&mut self, other: InternalAbstractGeneratorFlags)
fn bitxor_assign(&mut self, other: InternalAbstractGeneratorFlags)
Toggles the set of flags.
Source§impl Clone for InternalAbstractGeneratorFlags
impl Clone for InternalAbstractGeneratorFlags
Source§fn clone(&self) -> InternalAbstractGeneratorFlags
fn clone(&self) -> InternalAbstractGeneratorFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Extend<InternalAbstractGeneratorFlags> for InternalAbstractGeneratorFlags
impl Extend<InternalAbstractGeneratorFlags> for InternalAbstractGeneratorFlags
Source§fn extend<T: IntoIterator<Item = InternalAbstractGeneratorFlags>>(
&mut self,
iterator: T,
)
fn extend<T: IntoIterator<Item = InternalAbstractGeneratorFlags>>( &mut self, iterator: T, )
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl FromIterator<InternalAbstractGeneratorFlags> for InternalAbstractGeneratorFlags
impl FromIterator<InternalAbstractGeneratorFlags> for InternalAbstractGeneratorFlags
Source§fn from_iter<T: IntoIterator<Item = InternalAbstractGeneratorFlags>>(
iterator: T,
) -> InternalAbstractGeneratorFlags
fn from_iter<T: IntoIterator<Item = InternalAbstractGeneratorFlags>>( iterator: T, ) -> InternalAbstractGeneratorFlags
Source§impl Not for InternalAbstractGeneratorFlags
impl Not for InternalAbstractGeneratorFlags
Source§fn not(self) -> InternalAbstractGeneratorFlags
fn not(self) -> InternalAbstractGeneratorFlags
Returns the complement of this set of flags.
Source§type Output = InternalAbstractGeneratorFlags
type Output = InternalAbstractGeneratorFlags
! operator.Source§impl Ord for InternalAbstractGeneratorFlags
impl Ord for InternalAbstractGeneratorFlags
Source§fn cmp(&self, other: &InternalAbstractGeneratorFlags) -> Ordering
fn cmp(&self, other: &InternalAbstractGeneratorFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for InternalAbstractGeneratorFlags
impl PartialEq for InternalAbstractGeneratorFlags
Source§fn eq(&self, other: &InternalAbstractGeneratorFlags) -> bool
fn eq(&self, other: &InternalAbstractGeneratorFlags) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for InternalAbstractGeneratorFlags
impl PartialOrd for InternalAbstractGeneratorFlags
Source§impl Sub for InternalAbstractGeneratorFlags
impl Sub for InternalAbstractGeneratorFlags
Source§fn sub(
self,
other: InternalAbstractGeneratorFlags,
) -> InternalAbstractGeneratorFlags
fn sub( self, other: InternalAbstractGeneratorFlags, ) -> InternalAbstractGeneratorFlags
Returns the set difference of the two sets of flags.
Source§type Output = InternalAbstractGeneratorFlags
type Output = InternalAbstractGeneratorFlags
- operator.Source§impl SubAssign for InternalAbstractGeneratorFlags
impl SubAssign for InternalAbstractGeneratorFlags
Source§fn sub_assign(&mut self, other: InternalAbstractGeneratorFlags)
fn sub_assign(&mut self, other: InternalAbstractGeneratorFlags)
Disables all flags enabled in the set.