Struct speech_synthesis::AudioFormat
source · 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 new_named( name: impl Into<Box<str>>, sample_rate: u32, channels: AudioChannels, bitrate: Option<u16>, container: AudioContainer ) -> Self
pub fn name(&self) -> Option<&str>
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 copy 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 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