[−]Struct gstreamer_audio::AudioFormatFlags
Methods
impl AudioFormatFlags
pub const INTEGER: AudioFormatFlags
pub const FLOAT: AudioFormatFlags
pub const SIGNED: AudioFormatFlags
pub const COMPLEX: AudioFormatFlags
pub const UNPACK: AudioFormatFlags
pub const fn empty() -> AudioFormatFlags
Returns an empty set of flags
pub const fn all() -> AudioFormatFlags
Returns the set containing all flags.
pub const fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<AudioFormatFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u32) -> AudioFormatFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> AudioFormatFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: AudioFormatFlags) -> bool
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: AudioFormatFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: AudioFormatFlags)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: AudioFormatFlags)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: AudioFormatFlags)
Toggles the specified flags in-place.
pub fn set(&mut self, other: AudioFormatFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for AudioFormatFlags
impl BitAnd<AudioFormatFlags> for AudioFormatFlags
type Output = AudioFormatFlags
The resulting type after applying the &
operator.
fn bitand(self, other: AudioFormatFlags) -> AudioFormatFlags
Returns the intersection between the two sets of flags.
impl BitAndAssign<AudioFormatFlags> for AudioFormatFlags
fn bitand_assign(&mut self, other: AudioFormatFlags)
Disables all flags disabled in the set.
impl BitOr<AudioFormatFlags> for AudioFormatFlags
type Output = AudioFormatFlags
The resulting type after applying the |
operator.
fn bitor(self, other: AudioFormatFlags) -> AudioFormatFlags
Returns the union of the two sets of flags.
impl BitOrAssign<AudioFormatFlags> for AudioFormatFlags
fn bitor_assign(&mut self, other: AudioFormatFlags)
Adds the set of flags.
impl BitXor<AudioFormatFlags> for AudioFormatFlags
type Output = AudioFormatFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: AudioFormatFlags) -> AudioFormatFlags
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign<AudioFormatFlags> for AudioFormatFlags
fn bitxor_assign(&mut self, other: AudioFormatFlags)
Toggles the set of flags.
impl Clone for AudioFormatFlags
fn clone(&self) -> AudioFormatFlags
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AudioFormatFlags
impl Debug for AudioFormatFlags
impl Eq for AudioFormatFlags
impl Extend<AudioFormatFlags> for AudioFormatFlags
fn extend<T: IntoIterator<Item = AudioFormatFlags>>(&mut self, iterator: T)
impl FromIterator<AudioFormatFlags> for AudioFormatFlags
fn from_iter<T: IntoIterator<Item = AudioFormatFlags>>(
iterator: T
) -> AudioFormatFlags
iterator: T
) -> AudioFormatFlags
impl<'a> FromValue<'a> for AudioFormatFlags
[src]
unsafe fn from_value(value: &Value) -> Self
[src]
impl<'a> FromValueOptional<'a> for AudioFormatFlags
[src]
unsafe fn from_value_optional(value: &Value) -> Option<Self>
[src]
impl Hash for AudioFormatFlags
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl LowerHex for AudioFormatFlags
impl Not for AudioFormatFlags
type Output = AudioFormatFlags
The resulting type after applying the !
operator.
fn not(self) -> AudioFormatFlags
Returns the complement of this set of flags.
impl Octal for AudioFormatFlags
impl Ord for AudioFormatFlags
fn cmp(&self, other: &AudioFormatFlags) -> Ordering
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<AudioFormatFlags> for AudioFormatFlags
fn eq(&self, other: &AudioFormatFlags) -> bool
fn ne(&self, other: &AudioFormatFlags) -> bool
impl PartialOrd<AudioFormatFlags> for AudioFormatFlags
fn partial_cmp(&self, other: &AudioFormatFlags) -> Option<Ordering>
fn lt(&self, other: &AudioFormatFlags) -> bool
fn le(&self, other: &AudioFormatFlags) -> bool
fn gt(&self, other: &AudioFormatFlags) -> bool
fn ge(&self, other: &AudioFormatFlags) -> bool
impl SetValue for AudioFormatFlags
[src]
impl StaticType for AudioFormatFlags
[src]
fn static_type() -> Type
[src]
impl StructuralEq for AudioFormatFlags
impl StructuralPartialEq for AudioFormatFlags
impl Sub<AudioFormatFlags> for AudioFormatFlags
type Output = AudioFormatFlags
The resulting type after applying the -
operator.
fn sub(self, other: AudioFormatFlags) -> AudioFormatFlags
Returns the set difference of the two sets of flags.
impl SubAssign<AudioFormatFlags> for AudioFormatFlags
fn sub_assign(&mut self, other: AudioFormatFlags)
Disables all flags enabled in the set.
impl UpperHex for AudioFormatFlags
Auto Trait Implementations
impl RefUnwindSafe for AudioFormatFlags
impl Send for AudioFormatFlags
impl Sync for AudioFormatFlags
impl Unpin for AudioFormatFlags
impl UnwindSafe for AudioFormatFlags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue
[src]
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,