Struct voodoo::SampleCountFlags
[−]
#[repr(C)]pub struct SampleCountFlags { /* fields omitted */ }
Methods
impl SampleCountFlags
const FLAG_BITS_MAX_ENUM: SampleCountFlags
FLAG_BITS_MAX_ENUM: SampleCountFlags = SampleCountFlags{bits: 2147483647,}
const COUNT_1: SampleCountFlags
COUNT_1: SampleCountFlags = SampleCountFlags{bits: 1,}
const COUNT_2: SampleCountFlags
COUNT_2: SampleCountFlags = SampleCountFlags{bits: 2,}
const COUNT_4: SampleCountFlags
COUNT_4: SampleCountFlags = SampleCountFlags{bits: 4,}
const COUNT_8: SampleCountFlags
COUNT_8: SampleCountFlags = SampleCountFlags{bits: 8,}
const COUNT_16: SampleCountFlags
COUNT_16: SampleCountFlags = SampleCountFlags{bits: 16,}
const COUNT_32: SampleCountFlags
COUNT_32: SampleCountFlags = SampleCountFlags{bits: 32,}
const COUNT_64: SampleCountFlags
COUNT_64: SampleCountFlags = SampleCountFlags{bits: 64,}
fn empty() -> SampleCountFlags
Returns an empty set of flags.
fn all() -> SampleCountFlags
Returns the set containing all flags.
fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
fn from_bits(bits: u32) -> Option<SampleCountFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u32) -> SampleCountFlags
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: SampleCountFlags) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: SampleCountFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: SampleCountFlags)
Inserts the specified flags in-place.
fn remove(&mut self, other: SampleCountFlags)
Removes the specified flags in-place.
fn toggle(&mut self, other: SampleCountFlags)
Toggles the specified flags in-place.
fn set(&mut self, other: SampleCountFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for SampleCountFlags
impl PartialEq for SampleCountFlags
fn eq(&self, __arg_0: &SampleCountFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SampleCountFlags) -> bool
This method tests for !=
.
impl Eq for SampleCountFlags
impl Clone for SampleCountFlags
fn clone(&self) -> SampleCountFlags
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 SampleCountFlags
fn partial_cmp(&self, __arg_0: &SampleCountFlags) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &SampleCountFlags) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &SampleCountFlags) -> 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: &SampleCountFlags) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &SampleCountFlags) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for SampleCountFlags
fn cmp(&self, __arg_0: &SampleCountFlags) -> 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 SampleCountFlags
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 Default for SampleCountFlags
[src]
fn default() -> SampleCountFlags
[src]
Returns the "default value" for a type. Read more
impl Debug for SampleCountFlags
impl Binary for SampleCountFlags
impl Octal for SampleCountFlags
impl LowerHex for SampleCountFlags
impl UpperHex for SampleCountFlags
impl BitOr for SampleCountFlags
type Output = SampleCountFlags
The resulting type after applying the |
operator.
fn bitor(self, other: SampleCountFlags) -> SampleCountFlags
Returns the union of the two sets of flags.
impl BitOrAssign for SampleCountFlags
fn bitor_assign(&mut self, other: SampleCountFlags)
Adds the set of flags.
impl BitXor for SampleCountFlags
type Output = SampleCountFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: SampleCountFlags) -> SampleCountFlags
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for SampleCountFlags
fn bitxor_assign(&mut self, other: SampleCountFlags)
Toggles the set of flags.
impl BitAnd for SampleCountFlags
type Output = SampleCountFlags
The resulting type after applying the &
operator.
fn bitand(self, other: SampleCountFlags) -> SampleCountFlags
Returns the intersection between the two sets of flags.
impl BitAndAssign for SampleCountFlags
fn bitand_assign(&mut self, other: SampleCountFlags)
Disables all flags disabled in the set.
impl Sub for SampleCountFlags
type Output = SampleCountFlags
The resulting type after applying the -
operator.
fn sub(self, other: SampleCountFlags) -> SampleCountFlags
Returns the set difference of the two sets of flags.
impl SubAssign for SampleCountFlags
fn sub_assign(&mut self, other: SampleCountFlags)
Disables all flags enabled in the set.
impl Not for SampleCountFlags
type Output = SampleCountFlags
The resulting type after applying the !
operator.
fn not(self) -> SampleCountFlags
Returns the complement of this set of flags.
impl Extend<SampleCountFlags> for SampleCountFlags
fn extend<T: IntoIterator<Item = SampleCountFlags>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<SampleCountFlags> for SampleCountFlags
fn from_iter<T: IntoIterator<Item = SampleCountFlags>>(
iterator: T
) -> SampleCountFlags
iterator: T
) -> SampleCountFlags
Creates a value from an iterator. Read more