Trait octseq::builder::FromBuilder

source ·
pub trait FromBuilder: AsRef<[u8]> + Sized {
    type Builder: OctetsBuilder + FreezeBuilder<Octets = Self>;

    // Required method
    fn from_builder(builder: Self::Builder) -> Self;
}
Expand description

An octets type that can be created from an octets builder.

Required Associated Types§

source

type Builder: OctetsBuilder + FreezeBuilder<Octets = Self>

The type of builder this octets type can be created from.

Required Methods§

source

fn from_builder(builder: Self::Builder) -> Self

Creates an octets value from an octets builder.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromBuilder for Bytes

§

type Builder = BytesMut

source§

fn from_builder(builder: Self::Builder) -> Self

source§

impl FromBuilder for Vec<u8>

§

type Builder = Vec<u8>

source§

fn from_builder(builder: Self::Builder) -> Self

source§

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

§

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

source§

fn from_builder(builder: Self::Builder) -> Self

source§

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

§

type Builder = SmallVec<A>

source§

fn from_builder(builder: Self::Builder) -> Self

Implementors§

source§

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

§

type Builder = Array<N>