Trait inspect_format::BlockContainer

source ·
pub trait BlockContainer {
    type Data;
    type ShareableData;

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

    // Provided method
    fn is_empty(&self) -> bool { ... }
}

Required Associated Types§

Required Methods§

source

fn len(&self) -> usize

Returns the size of the container.

Provided Methods§

source

fn is_empty(&self) -> bool

Returns whether the container is empty or not.

Implementations on Foreign Types§

source§

impl BlockContainer for Vmo

§

type Data = Vmo

§

type ShareableData = Vmo

source§

fn len(&self) -> usize

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