pub trait BlockContainer {
    type Data;
    type ShareableData;

    // Required method
    fn len(&self) -> usize;
}

Required Associated Types§

Required Methods§

source

fn len(&self) -> usize

Returns the size of the container.

Implementations on Foreign Types§

source§

impl BlockContainer for Vec<u8>

source§

fn len(&self) -> usize

The number of bytes in the buffer.

§

type Data = Vec<u8>

§

type ShareableData = ()

source§

impl BlockContainer for Vmo

§

type Data = Vmo

§

type ShareableData = Vmo

source§

fn len(&self) -> usize

source§

impl BlockContainer for [u8]

§

type Data = ()

§

type ShareableData = ()

source§

fn len(&self) -> usize

source§

impl<const N: usize> BlockContainer for [u8; N]

source§

fn len(&self) -> usize

The number of bytes in the buffer.

§

type Data = [u8; N]

§

type ShareableData = ()

Implementors§