Struct rustsynth::format::AudioFormat
source · pub struct AudioFormat {
pub sample_type: SampleType,
pub bits_per_sample: i32,
pub bytes_per_sample: i32,
pub num_channels: i32,
pub channel_layout: u64,
}
Fields§
§sample_type: SampleType
§bits_per_sample: i32
§bytes_per_sample: i32
§num_channels: i32
§channel_layout: u64
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 moresource§impl Debug for AudioFormat
impl Debug for AudioFormat
source§impl Hash for AudioFormat
impl Hash for AudioFormat
source§impl PartialEq<AudioFormat> for AudioFormat
impl PartialEq<AudioFormat> for AudioFormat
source§fn eq(&self, other: &AudioFormat) -> bool
fn eq(&self, other: &AudioFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AudioFormat
impl Eq for AudioFormat
impl StructuralEq for AudioFormat
impl StructuralPartialEq for AudioFormat
Auto 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