Trait block_buffer::sealed::Sealed
source · pub trait Sealed {
// Required methods
fn invariant(pos: usize, block_size: usize) -> bool;
fn split_blocks<N: ArrayLength<u8>>(data: &[u8]) -> (&[Block<N>], &[u8]);
}
Expand description
Sealed trait for buffer kinds.
Required Methods§
sourcefn invariant(pos: usize, block_size: usize) -> bool
fn invariant(pos: usize, block_size: usize) -> bool
Invariant guaranteed by a buffer kind, i.e. with correct buffer code this function always returns true.
sourcefn split_blocks<N: ArrayLength<u8>>(data: &[u8]) -> (&[Block<N>], &[u8])
fn split_blocks<N: ArrayLength<u8>>(data: &[u8]) -> (&[Block<N>], &[u8])
Split input data into slice of blocks and tail.
Object Safety§
This trait is not object safe.