pub struct PcmSpec {
pub channels: u16,
pub sample_rate: u32,
}Expand description
PCM specification - core audio format information
Intentionally without #[non_exhaustive]: this is a stable POD pair
(channels, sample_rate) at the heart of every audio API in the
workspace, constructed via direct struct literal at >100 call sites.
Adding fields would force a workspace-wide migration regardless of
non-exhaustiveness, so the marker buys nothing.
Fields§
§channels: u16§sample_rate: u32Trait Implementations§
impl Copy for PcmSpec
impl Eq for PcmSpec
impl StructuralPartialEq for PcmSpec
Auto Trait Implementations§
impl Freeze for PcmSpec
impl RefUnwindSafe for PcmSpec
impl Send for PcmSpec
impl Sync for PcmSpec
impl Unpin for PcmSpec
impl UnsafeUnpin for PcmSpec
impl UnwindSafe for PcmSpec
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