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