WasmWrapper

Trait WasmWrapper 

Source
pub trait WasmWrapper<T> {
    // Required methods
    fn inner(&self) -> &T;
    fn into_inner(self) -> T;
    fn from_inner(inner: T) -> Self;
}

Required Methods§

Source

fn inner(&self) -> &T

Get a reference to the inner type (Rust struct)

Source

fn into_inner(self) -> T

Consume the wrapper and return the inner type

Source

fn from_inner(inner: T) -> Self

Create a new wrapper from the inner type

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§