pub enum AudioSampleFormat {
S16LE = 1,
}Expand description
The format of the samples emitted via [yield_audio_samples].
Variants§
S16LE = 1
Signed 16-bit integer, little-endian.
Implementations§
Trait Implementations§
Source§impl Clone for AudioSampleFormat
impl Clone for AudioSampleFormat
Source§fn clone(&self) -> AudioSampleFormat
fn clone(&self) -> AudioSampleFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioSampleFormat
impl Debug for AudioSampleFormat
Source§impl Decode for AudioSampleFormat
impl Decode for AudioSampleFormat
Source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<AudioSampleFormat, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<AudioSampleFormat, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Encode for AudioSampleFormat
impl Encode for AudioSampleFormat
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl Hash for AudioSampleFormat
impl Hash for AudioSampleFormat
Source§impl MaxEncodedLen for AudioSampleFormat
impl MaxEncodedLen for AudioSampleFormat
Source§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.
Source§impl Ord for AudioSampleFormat
impl Ord for AudioSampleFormat
Source§fn cmp(&self, other: &AudioSampleFormat) -> Ordering
fn cmp(&self, other: &AudioSampleFormat) -> Ordering
1.21.0 · Source§fn 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
Source§impl PartialEq for AudioSampleFormat
impl PartialEq for AudioSampleFormat
Source§impl PartialOrd for AudioSampleFormat
impl PartialOrd for AudioSampleFormat
Source§impl TryFrom<u8> for AudioSampleFormat
impl TryFrom<u8> for AudioSampleFormat
impl Copy for AudioSampleFormat
impl EncodeLike for AudioSampleFormat
impl Eq for AudioSampleFormat
impl StructuralPartialEq for AudioSampleFormat
Auto Trait Implementations§
impl Freeze for AudioSampleFormat
impl RefUnwindSafe for AudioSampleFormat
impl Send for AudioSampleFormat
impl Sync for AudioSampleFormat
impl Unpin for AudioSampleFormat
impl UnwindSafe for AudioSampleFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more