pub struct AudioFormat { /* private fields */ }
Implementations§
Source§impl AudioFormat
impl AudioFormat
pub fn new( sample_rate: u32, channels: AudioChannels, bitrate: Option<u16>, container: AudioContainer, ) -> Self
pub fn sample_rate(&self) -> u32
pub fn channels(&self) -> AudioChannels
pub fn bitrate(&self) -> Option<u16>
pub fn container(&self) -> AudioContainer
Trait Implementations§
Source§impl Clone for AudioFormat
impl Clone for AudioFormat
Source§fn clone(&self) -> AudioFormat
fn clone(&self) -> AudioFormat
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 moreAuto Trait Implementations§
impl Freeze for AudioFormat
impl RefUnwindSafe for AudioFormat
impl Send for AudioFormat
impl Sync for AudioFormat
impl Unpin for AudioFormat
impl UnwindSafe for AudioFormat
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