[][src]Trait amplify::Wrapper

pub trait Wrapper {
    type Inner: Clone;
    fn from_inner(inner: Self::Inner) -> Self;
fn as_inner(&self) -> &Self::Inner;
fn into_inner(self) -> Self::Inner; fn to_inner(&self) -> Self::Inner { ... } }

Associated Types

type Inner: Clone

Loading content...

Required methods

fn from_inner(inner: Self::Inner) -> Self

Instantiates wrapper type with the inner data

fn as_inner(&self) -> &Self::Inner

Returns reference to the inner representation for the wrapper type

fn into_inner(self) -> Self::Inner

Unwraps the wrapper returning the inner type

Loading content...

Provided methods

fn to_inner(&self) -> Self::Inner

Clones inner data of the wrapped type and return them

Loading content...

Implementors

Loading content...