Struct gstreamer_audio::AudioFormatInfo
source · pub struct AudioFormatInfo(_);Implementations
sourceimpl AudioFormatInfo
impl AudioFormatInfo
pub fn from_format(format: AudioFormat) -> Self
pub fn format(&self) -> AudioFormat
pub fn name<'a>(&self) -> &'a str
pub fn description<'a>(&self) -> &'a str
pub fn flags(&self) -> AudioFormatFlags
pub fn endianness(&self) -> AudioEndianness
pub fn width(&self) -> u32
pub fn depth(&self) -> u32
pub fn unpack_format(&self) -> AudioFormat
pub fn silence<'a>(&self) -> &'a [u8]ⓘ
pub fn unpack(&self, flags: AudioPackFlags, dest: &mut [u8], src: &[u8])
pub fn pack(&self, flags: AudioPackFlags, dest: &mut [u8], src: &[u8])
pub fn fill_silence(&self, dest: &mut [u8])
pub fn is_float(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn is_signed(&self) -> bool
pub fn is_little_endian(&self) -> bool
pub fn is_big_endian(&self) -> bool
Trait Implementations
sourceimpl Debug for AudioFormatInfo
impl Debug for AudioFormatInfo
sourceimpl Display for AudioFormatInfo
impl Display for AudioFormatInfo
sourceimpl From<AudioFormat> for AudioFormatInfo
impl From<AudioFormat> for AudioFormatInfo
sourcefn from(f: AudioFormat) -> Self
fn from(f: AudioFormat) -> Self
Converts to this type from the input type.
sourceimpl FromStr for AudioFormatInfo
impl FromStr for AudioFormatInfo
sourceimpl Ord for AudioFormatInfo
impl Ord for AudioFormatInfo
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<AudioFormatInfo> for AudioFormatInfo
impl PartialEq<AudioFormatInfo> for AudioFormatInfo
sourceimpl PartialOrd<AudioFormatInfo> for AudioFormatInfo
impl PartialOrd<AudioFormatInfo> for AudioFormatInfo
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for AudioFormatInfo
impl StaticType for AudioFormatInfo
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.sourceimpl ValueType for AudioFormatInfo
impl ValueType for AudioFormatInfo
type Type = AudioFormatInfo
type Type = AudioFormatInfo
Type to get the
Type from. Read moreimpl Eq for AudioFormatInfo
impl Send for AudioFormatInfo
impl Sync for AudioFormatInfo
Auto Trait Implementations
impl RefUnwindSafe for AudioFormatInfo
impl Unpin for AudioFormatInfo
impl UnwindSafe for AudioFormatInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.