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
UnknownEncodedS8U8S16leS16beU16leU16beS2432leS2432beU2432leU2432beS32leS32beU32leU32beS24leS24beU24leU24beS20leS20beU20leU20beS18leS18beU18leU18beF32leF32beF64leF64be
Methods
impl AudioFormat[src]
impl AudioFormatpub 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
) -> AudioFormatpub fn from_string(s: &str) -> AudioFormat[src]
pub fn from_string(s: &str) -> AudioFormatpub fn to_string<'a>(self) -> &'a str[src]
pub fn to_string<'a>(self) -> &'a strTrait Implementations
impl Debug for AudioFormat[src]
impl Debug for AudioFormatfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for AudioFormat[src]
impl Eq for AudioFormatimpl PartialEq for AudioFormat[src]
impl PartialEq for AudioFormatfn eq(&self, other: &AudioFormat) -> bool[src]
fn eq(&self, other: &AudioFormat) -> boolThis 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) -> boolThis method tests for !=.
impl Ord for AudioFormat[src]
impl Ord for AudioFormatfn cmp(&self, other: &AudioFormat) -> Ordering[src]
fn cmp(&self, other: &AudioFormat) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd for AudioFormat[src]
impl PartialOrd for AudioFormatfn 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) -> boolThis 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) -> boolThis 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) -> boolThis 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) -> boolThis 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 AudioFormatfn 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 AudioFormatfn clone(&self) -> AudioFormat[src]
fn clone(&self) -> AudioFormatReturns 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 AudioFormatimpl StaticType for AudioFormat[src]
impl StaticType for AudioFormatfn static_type() -> Type[src]
fn static_type() -> TypeReturns the type identifier of Self.
impl<'a> FromValueOptional<'a> for AudioFormat[src]
impl<'a> FromValueOptional<'a> for AudioFormatunsafe 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 AudioFormatunsafe fn from_value(value: &Value) -> Self[src]
unsafe fn from_value(value: &Value) -> Selfimpl SetValue for AudioFormat[src]
impl SetValue for AudioFormatimpl FromStr for AudioFormat[src]
impl FromStr for AudioFormattype 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 AudioFormatfn 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 AudioFormatInfofn from(f: AudioFormat) -> Self[src]
fn from(f: AudioFormat) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for AudioFormat
impl Send for AudioFormatimpl Sync for AudioFormat
impl Sync for AudioFormat