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 immutable 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 immutable octets sequence.

Implementations on Foreign Types§

source§

impl FreezeBuilder for BytesMut

source§

type Octets = Bytes

source§

fn freeze(self) -> Self::Octets

source§

impl FreezeBuilder for Vec<u8>

source§

type Octets = Vec<u8>

source§

fn freeze(self) -> Self::Octets

source§

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

source§

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

source§

fn freeze(self) -> Self::Octets

source§

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

source§

type Octets = SmallVec<A>

source§

fn freeze(self) -> Self::Octets

Implementors§

source§

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