Enum gstreamer_audio::AudioFormat [−][src]
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]
impl AudioFormat
pub fn build_integer(
sign: bool,
endianness: AudioEndianness,
width: i32,
depth: i32
) -> AudioFormat
[src]
pub fn build_integer(
sign: bool,
endianness: AudioEndianness,
width: i32,
depth: i32
) -> AudioFormat
pub fn from_string(s: &str) -> AudioFormat
[src]
pub fn from_string(s: &str) -> AudioFormat
pub fn to_string<'a>(self) -> &'a str
[src]
pub fn to_string<'a>(self) -> &'a str
Trait Implementations
impl Debug for AudioFormat
[src]
impl Debug for AudioFormat
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for AudioFormat
[src]
impl Eq for AudioFormat
impl PartialEq for AudioFormat
[src]
impl PartialEq for AudioFormat
fn eq(&self, other: &AudioFormat) -> bool
[src]
fn eq(&self, other: &AudioFormat) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AudioFormat) -> bool
[src]
fn ne(&self, other: &AudioFormat) -> bool
This method tests for !=
.
impl Ord for AudioFormat
[src]
impl Ord for AudioFormat
fn cmp(&self, other: &AudioFormat) -> Ordering
[src]
fn cmp(&self, other: &AudioFormat) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for AudioFormat
[src]
impl PartialOrd for AudioFormat
fn partial_cmp(&self, other: &AudioFormat) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &AudioFormat) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &AudioFormat) -> bool
[src]
fn lt(&self, other: &AudioFormat) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &AudioFormat) -> bool
[src]
fn le(&self, other: &AudioFormat) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &AudioFormat) -> bool
[src]
fn gt(&self, other: &AudioFormat) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &AudioFormat) -> bool
[src]
fn ge(&self, other: &AudioFormat) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for AudioFormat
[src]
impl Hash for AudioFormat
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for AudioFormat
[src]
impl Clone for AudioFormat
fn clone(&self) -> AudioFormat
[src]
fn clone(&self) -> AudioFormat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for AudioFormat
[src]
impl Copy for AudioFormat
impl StaticType for AudioFormat
[src]
impl StaticType for AudioFormat
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.
impl<'a> FromValueOptional<'a> for AudioFormat
[src]
impl<'a> FromValueOptional<'a> for AudioFormat
unsafe fn from_value_optional(value: &Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &Value) -> Option<Self>
impl<'a> FromValue<'a> for AudioFormat
[src]
impl<'a> FromValue<'a> for AudioFormat
unsafe fn from_value(value: &Value) -> Self
[src]
unsafe fn from_value(value: &Value) -> Self
impl SetValue for AudioFormat
[src]
impl SetValue for AudioFormat
impl FromStr for AudioFormat
[src]
impl FromStr for AudioFormat
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, ()>
[src]
fn from_str(s: &str) -> Result<Self, ()>
Parses a string s
to return a value of this type. Read more
impl Display for AudioFormat
[src]
impl Display for AudioFormat
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<AudioFormat> for AudioFormatInfo
[src]
impl From<AudioFormat> for AudioFormatInfo
fn from(f: AudioFormat) -> Self
[src]
fn from(f: AudioFormat) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for AudioFormat
impl Send for AudioFormat
impl Sync for AudioFormat
impl Sync for AudioFormat