[]Struct gstreamer_audio::AudioFormatFlags

pub struct AudioFormatFlags { /* fields omitted */ }

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

impl Copy for AudioFormatFlags

impl Debug for AudioFormatFlags

impl Eq for AudioFormatFlags

impl Extend<AudioFormatFlags> for AudioFormatFlags

impl FromIterator<AudioFormatFlags> for AudioFormatFlags

impl<'a> FromValue<'a> for AudioFormatFlags[src]

impl<'a> FromValueOptional<'a> for AudioFormatFlags[src]

impl Hash for AudioFormatFlags

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

impl PartialEq<AudioFormatFlags> for AudioFormatFlags

impl PartialOrd<AudioFormatFlags> for AudioFormatFlags

impl SetValue for AudioFormatFlags[src]

impl StaticType for AudioFormatFlags[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.