[][src]Struct gstreamer_audio::AudioFormatFlags

pub struct AudioFormatFlags { /* fields omitted */ }

The different audio flags that a format info can have.

Implementations

impl AudioFormatFlags[src]

pub const INTEGER: AudioFormatFlags[src]

integer samples

pub const FLOAT: AudioFormatFlags[src]

float samples

pub const SIGNED: AudioFormatFlags[src]

signed samples

pub const COMPLEX: AudioFormatFlags[src]

complex layout

pub const UNPACK: AudioFormatFlags[src]

the format can be used in GstAudioFormatUnpack and GstAudioFormatPack functions

pub const fn empty() -> AudioFormatFlags[src]

Returns an empty set of flags

pub const fn all() -> AudioFormatFlags[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u32[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<AudioFormatFlags>[src]

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[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: u32) -> AudioFormatFlags[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: AudioFormatFlags) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: AudioFormatFlags) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: AudioFormatFlags)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: AudioFormatFlags)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: AudioFormatFlags)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: AudioFormatFlags, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for AudioFormatFlags[src]

impl BitAnd<AudioFormatFlags> for AudioFormatFlags[src]

type Output = AudioFormatFlags

The resulting type after applying the & operator.

fn bitand(self, other: AudioFormatFlags) -> AudioFormatFlags[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<AudioFormatFlags> for AudioFormatFlags[src]

fn bitand_assign(&mut self, other: AudioFormatFlags)[src]

Disables all flags disabled in the set.

impl BitOr<AudioFormatFlags> for AudioFormatFlags[src]

type Output = AudioFormatFlags

The resulting type after applying the | operator.

fn bitor(self, other: AudioFormatFlags) -> AudioFormatFlags[src]

Returns the union of the two sets of flags.

impl BitOrAssign<AudioFormatFlags> for AudioFormatFlags[src]

fn bitor_assign(&mut self, other: AudioFormatFlags)[src]

Adds the set of flags.

impl BitXor<AudioFormatFlags> for AudioFormatFlags[src]

type Output = AudioFormatFlags

The resulting type after applying the ^ operator.

fn bitxor(self, other: AudioFormatFlags) -> AudioFormatFlags[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<AudioFormatFlags> for AudioFormatFlags[src]

fn bitxor_assign(&mut self, other: AudioFormatFlags)[src]

Toggles the set of flags.

impl Clone for AudioFormatFlags[src]

impl Copy for AudioFormatFlags[src]

impl Debug for AudioFormatFlags[src]

impl Eq for AudioFormatFlags[src]

impl Extend<AudioFormatFlags> for AudioFormatFlags[src]

impl FromIterator<AudioFormatFlags> for AudioFormatFlags[src]

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

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

impl Hash for AudioFormatFlags[src]

impl LowerHex for AudioFormatFlags[src]

impl Not for AudioFormatFlags[src]

type Output = AudioFormatFlags

The resulting type after applying the ! operator.

fn not(self) -> AudioFormatFlags[src]

Returns the complement of this set of flags.

impl Octal for AudioFormatFlags[src]

impl Ord for AudioFormatFlags[src]

impl PartialEq<AudioFormatFlags> for AudioFormatFlags[src]

impl PartialOrd<AudioFormatFlags> for AudioFormatFlags[src]

impl SetValue for AudioFormatFlags[src]

impl StaticType for AudioFormatFlags[src]

impl StructuralEq for AudioFormatFlags[src]

impl StructuralPartialEq for AudioFormatFlags[src]

impl Sub<AudioFormatFlags> for AudioFormatFlags[src]

type Output = AudioFormatFlags

The resulting type after applying the - operator.

fn sub(self, other: AudioFormatFlags) -> AudioFormatFlags[src]

Returns the set difference of the two sets of flags.

impl SubAssign<AudioFormatFlags> for AudioFormatFlags[src]

fn sub_assign(&mut self, other: AudioFormatFlags)[src]

Disables all flags enabled in the set.

impl UpperHex for AudioFormatFlags[src]

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.