pub trait FromBuilder: AsRef<[u8]> + Sized {
    type Builder: OctetsBuilder<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<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.

Implementations on Foreign Types§

source§

impl FromBuilder for Bytes

§

type Builder = BytesMut

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

source§

impl FromBuilder for Vec<u8>

§

type Builder = Vec<u8, Global>

source§

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

Implementors§