pub struct Block<T: Copy, const N: usize> { /* private fields */ }Expand description
A complete, contiguous block of N samples.
Sequence 0 is reserved. The first and last sequence values describe the
inclusive range represented by samples; wrap skips the reserved value.
Implementations§
Source§impl<T: Copy, const N: usize> Block<T, N>
impl<T: Copy, const N: usize> Block<T, N>
Sourcepub const fn first_sequence(&self) -> u32
pub const fn first_sequence(&self) -> u32
Sequence of the first sample in the block.
Sourcepub const fn last_sequence(&self) -> u32
pub const fn last_sequence(&self) -> u32
Sequence of the last sample in the block.
Sourcepub fn into_samples(self) -> [T; N]
pub fn into_samples(self) -> [T; N]
Consume the block and return its sample array.
Trait Implementations§
impl<T: Copy + Copy, const N: usize> Copy for Block<T, N>
impl<T: Eq + Copy, const N: usize> Eq for Block<T, N>
impl<T: PartialEq + Copy, const N: usize> StructuralPartialEq for Block<T, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for Block<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for Block<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for Block<T, N>where
T: Send,
impl<T, const N: usize> Sync for Block<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for Block<T, N>where
T: Unpin,
impl<T, const N: usize> UnsafeUnpin for Block<T, N>where
T: UnsafeUnpin,
impl<T, const N: usize> UnwindSafe for Block<T, N>where
T: UnwindSafe,
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