pub struct Rate<const I: usize>;Expand description
Select or place one sample in a fixed-size rate-conversion slot.
Rate<I> keeps or places the sample in slot I.
As [X; N] -> X, it returns x[I]. As X -> [X; N], it emits the sample
in slot I and fills the rest with Default::default().
This is a stateless shape-conversion primitive. It does not track stream
phase over time, so it is not a substitute for crate::Downsample or
crate::Decimator.
Trait Implementations§
impl<const I: usize> Copy for Rate<I>
Auto Trait Implementations§
impl<const I: usize> Freeze for Rate<I>
impl<const I: usize> RefUnwindSafe for Rate<I>
impl<const I: usize> Send for Rate<I>
impl<const I: usize> Sync for Rate<I>
impl<const I: usize> Unpin for Rate<I>
impl<const I: usize> UnsafeUnpin for Rate<I>
impl<const I: usize> UnwindSafe for Rate<I>
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