Struct cpal::Format
[−]
[src]
pub struct Format { pub channels: ChannelCount, pub sample_rate: SampleRate, pub data_type: SampleFormat, }
The format of an input or output audio stream.
Fields
channels: ChannelCount
sample_rate: SampleRate
data_type: SampleFormat
Trait Implementations
impl Debug for Format
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Format
[src]
fn clone(&self) -> Format
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Format
[src]
fn eq(&self, __arg_0: &Format) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Format) -> bool
[src]
This method tests for !=
.
impl Eq for Format
[src]
impl From<Format> for SupportedFormat
[src]
fn from(format: Format) -> SupportedFormat
[src]
Performs the conversion.