pub struct Format {
pub sample_type: SampleType,
pub frames_per_second: u32,
pub channels: u32,
}
Fields§
§sample_type: SampleType
§frames_per_second: u32
§channels: u32
Implementations§
Trait Implementations§
Source§impl From<AudioStreamType> for Format
impl From<AudioStreamType> for Format
Source§fn from(value: AudioStreamType) -> Self
fn from(value: AudioStreamType) -> Self
Converts to this type from the input type.
Source§impl From<Format> for AudioStreamType
impl From<Format> for AudioStreamType
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)