pub trait PassByInner: Sized {
    type Inner: RIType;

    // Required methods
    fn into_inner(self) -> Self::Inner;
    fn inner(&self) -> &Self::Inner;
    fn from_inner(inner: Self::Inner) -> Self;
}
Expand description

Trait that needs to be implemented by a type that should be passed between wasm and the host, by using the inner type. See Inner for more information.

Required Associated Types§

source

type Inner: RIType

The inner type that is wrapped by Self.

Required Methods§

source

fn into_inner(self) -> Self::Inner

Consumes self and returns the inner type.

source

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

Returns the reference to the inner type.

source

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

Construct Self from the given inner.

Implementations on Foreign Types§

source§

impl PassByInner for H512

§

type Inner = [u8; 64]

source§

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

source§

fn into_inner(self) -> Self::Inner

source§

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

source§

impl PassByInner for H256

§

type Inner = [u8; 32]

source§

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

source§

fn into_inner(self) -> Self::Inner

source§

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

source§

impl PassByInner for H160

§

type Inner = [u8; 20]

source§

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

source§

fn into_inner(self) -> Self::Inner

source§

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

Implementors§