Trait sp_runtime_interface::pass_by::PassByInner[][src]

pub trait PassByInner: Sized {
    type Inner: RIType;
    fn into_inner(self) -> Self::Inner;
fn inner(&self) -> &Self::Inner;
fn from_inner(inner: Self::Inner) -> Self; }

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.

Associated Types

type Inner: RIType[src]

The inner type that is wrapped by Self.

Loading content...

Required methods

fn into_inner(self) -> Self::Inner[src]

Consumes self and returns the inner type.

fn inner(&self) -> &Self::Inner[src]

Returns the reference to the inner type.

fn from_inner(inner: Self::Inner) -> Self[src]

Construct Self from the given inner.

Loading content...

Implementations on Foreign Types

impl PassByInner for H160[src]

type Inner = [u8; 20]

impl PassByInner for H256[src]

type Inner = [u8; 32]

impl PassByInner for H512[src]

type Inner = [u8; 64]

Loading content...

Implementors

Loading content...