Trait sp_runtime_interface::pass_by::PassByInner
source · 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§
Required Methods§
sourcefn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Consumes self
and returns the inner type.
sourcefn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Construct Self
from the given inner
.
Object Safety§
This trait is not object safe.