block_buffer::sealed

Trait 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§

Source

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.

Source

fn split_blocks<N: ArrayLength<u8>>(data: &[u8]) -> (&[Block<N>], &[u8])

Split input data into slice of blocks and tail.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§