Struct cubeb::DeviceType
[−]
[src]
pub struct DeviceType { /* fields omitted */ }
Methods
impl DeviceType
[src]
const UNKNOWN: DeviceType
UNKNOWN: DeviceType = DeviceType{bits: ffi::CUBEB_DEVICE_TYPE_UNKNOWN as _,}
const INPUT: DeviceType
INPUT: DeviceType = DeviceType{bits: ffi::CUBEB_DEVICE_TYPE_INPUT as _,}
const OUTPUT: DeviceType
OUTPUT: DeviceType = DeviceType{bits: ffi::CUBEB_DEVICE_TYPE_OUTPUT as _,}
fn empty() -> DeviceType
[src]
Returns an empty set of flags.
fn all() -> DeviceType
[src]
Returns the set containing all flags.
fn bits(&self) -> u32
[src]
Returns the raw value of the flags currently stored.
fn from_bits(bits: u32) -> Option<DeviceType>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u32) -> DeviceType
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
fn intersects(&self, other: DeviceType) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: DeviceType) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: DeviceType)
[src]
Inserts the specified flags in-place.
fn remove(&mut self, other: DeviceType)
[src]
Removes the specified flags in-place.
fn toggle(&mut self, other: DeviceType)
[src]
Toggles the specified flags in-place.
fn set(&mut self, other: DeviceType, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Ord for DeviceType
[src]
fn cmp(&self, __arg_0: &DeviceType) -> Ordering
[src]
impl Copy for DeviceType
[src]
impl Hash for DeviceType
[src]
impl Not for DeviceType
[src]
type Output = DeviceType
fn not(self) -> DeviceType
[src]
Returns the complement of this set of flags.
impl Clone for DeviceType
[src]
fn clone(&self) -> DeviceType
[src]
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 BitXor<DeviceType> for DeviceType
[src]
type Output = DeviceType
fn bitxor(self, other: DeviceType) -> DeviceType
[src]
Returns the left flags, but with all the right flags toggled.
impl BitOr<DeviceType> for DeviceType
[src]
type Output = DeviceType
fn bitor(self, other: DeviceType) -> DeviceType
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<DeviceType> for DeviceType
[src]
fn bitor_assign(&mut self, other: DeviceType)
[src]
Adds the set of flags.
impl Octal for DeviceType
[src]
impl BitAndAssign<DeviceType> for DeviceType
[src]
fn bitand_assign(&mut self, other: DeviceType)
[src]
Disables all flags disabled in the set.
impl PartialEq<DeviceType> for DeviceType
[src]
fn eq(&self, __arg_0: &DeviceType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DeviceType) -> bool
[src]
This method tests for !=
.
impl Debug for DeviceType
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl Extend<DeviceType> for DeviceType
[src]
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = DeviceType>,
[src]
T: IntoIterator<Item = DeviceType>,
impl SubAssign<DeviceType> for DeviceType
[src]
fn sub_assign(&mut self, other: DeviceType)
[src]
Disables all flags enabled in the set.
impl BitAnd<DeviceType> for DeviceType
[src]
type Output = DeviceType
fn bitand(self, other: DeviceType) -> DeviceType
[src]
Returns the intersection between the two sets of flags.
impl BitXorAssign<DeviceType> for DeviceType
[src]
fn bitxor_assign(&mut self, other: DeviceType)
[src]
Toggles the set of flags.
impl UpperHex for DeviceType
[src]
impl Eq for DeviceType
[src]
impl Binary for DeviceType
[src]
impl FromIterator<DeviceType> for DeviceType
[src]
fn from_iter<T>(iterator: T) -> DeviceType where
T: IntoIterator<Item = DeviceType>,
[src]
T: IntoIterator<Item = DeviceType>,
impl LowerHex for DeviceType
[src]
impl Sub<DeviceType> for DeviceType
[src]
type Output = DeviceType
fn sub(self, other: DeviceType) -> DeviceType
[src]
Returns the set difference of the two sets of flags.