[][src]Enum gstreamer_audio::AudioFormat

pub enum AudioFormat {
    Unknown,
    Encoded,
    S8,
    U8,
    S16le,
    S16be,
    U16le,
    U16be,
    S2432le,
    S2432be,
    U2432le,
    U2432be,
    S32le,
    S32be,
    U32le,
    U32be,
    S24le,
    S24be,
    U24le,
    U24be,
    S20le,
    S20be,
    U20le,
    U20be,
    S18le,
    S18be,
    U18le,
    U18be,
    F32le,
    F32be,
    F64le,
    F64be,
    // some variants omitted
}

Enum value describing the most common audio formats.

Variants

Unknown
Encoded
S8
U8
S16le
S16be
U16le
U16be
S2432le
S2432be
U2432le
U2432be
S32le
S32be
U32le
U32be
S24le
S24be
U24le
U24be
S20le
S20be
U20le
U20be
S18le
S18be
U18le
U18be
F32le
F32be
F64le
F64be

Methods

impl AudioFormat[src]

pub fn build_integer(
    sign: bool,
    endianness: AudioEndianness,
    width: i32,
    depth: i32
) -> AudioFormat
[src]

pub fn to_str<'a>(self) -> &'a str[src]

Trait Implementations

impl Clone for AudioFormat[src]

impl Copy for AudioFormat[src]

impl Debug for AudioFormat[src]

impl Display for AudioFormat[src]

impl Eq for AudioFormat[src]

impl From<AudioFormat> for AudioFormatInfo[src]

impl FromStr for AudioFormat[src]

type Err = BoolError

The associated error which can be returned from parsing.

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

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

impl Hash for AudioFormat[src]

impl Ord for AudioFormat[src]

impl PartialEq<AudioFormat> for AudioFormat[src]

impl PartialOrd<AudioFormat> for AudioFormat[src]

impl SetValue for AudioFormat[src]

impl StaticType for AudioFormat[src]

impl StructuralEq for AudioFormat[src]

impl StructuralPartialEq for AudioFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for AudioFormat

impl Send for AudioFormat

impl Sync for AudioFormat

impl Unpin for AudioFormat

impl UnwindSafe for AudioFormat

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> ToString for T where
    T: Display + ?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.