Trait octseq::builder::FreezeBuilder

source ·
pub trait FreezeBuilder {
    type Octets;

    // Required method
    fn freeze(self) -> Self::Octets;
}
Expand description

An octets builder that can be frozen into a imutable octets sequence.

Required Associated Types§

source

type Octets

The type of octets sequence to builder will be frozen into.

Required Methods§

source

fn freeze(self) -> Self::Octets

Converts the octets builder into an imutable octets sequence.

Implementations on Foreign Types§

source§

impl FreezeBuilder for BytesMut

§

type Octets = Bytes

source§

fn freeze(self) -> Self::Octets

source§

impl FreezeBuilder for Vec<u8>

§

type Octets = Vec<u8>

source§

fn freeze(self) -> Self::Octets

source§

impl<'a> FreezeBuilder for Cow<'a, [u8]>

§

type Octets = Cow<'a, [u8]>

source§

fn freeze(self) -> Self::Octets

source§

impl<A: Array<Item = u8>> FreezeBuilder for SmallVec<A>

§

type Octets = SmallVec<A>

source§

fn freeze(self) -> Self::Octets

Implementors§

source§

impl<const N: usize> FreezeBuilder for Array<N>

§

type Octets = Array<N>