[][src]Trait domain::base::octets::FromBuilder

pub trait FromBuilder: AsRef<[u8]> + Sized {
    type Builder: OctetsBuilder + IntoOctets<Octets = Self>;
    fn from_builder(builder: Self::Builder) -> Self;
}

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

This trait is a mirror of IntoOctets and only exists because otherwise trait bounds become ridiculously complex. The implementations of the two traits must behave identically.

Associated Types

type Builder: OctetsBuilder + IntoOctets<Octets = Self>

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

Loading content...

Required methods

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

Creates an octets value from an octets builder.

Loading content...

Implementations on Foreign Types

impl FromBuilder for Vec<u8>[src]

type Builder = Self

Loading content...

Implementors

impl FromBuilder for Octets1024[src]

type Builder = Self

impl FromBuilder for Octets128[src]

type Builder = Self

impl FromBuilder for Octets2048[src]

type Builder = Self

impl FromBuilder for Octets256[src]

type Builder = Self

impl FromBuilder for Octets32[src]

type Builder = Self

impl FromBuilder for Octets4096[src]

type Builder = Self

impl FromBuilder for Octets512[src]

type Builder = Self

impl FromBuilder for Octets64[src]

type Builder = Self

Loading content...