octseq::builder

Trait 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

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>