pub trait WasmWrapper<T> {
// Required methods
fn inner(&self) -> &T;
fn into_inner(self) -> T;
fn from_inner(inner: T) -> Self;
}
Required Methods§
Sourcefn into_inner(self) -> T
fn into_inner(self) -> T
Consume the wrapper and return the inner type
Sourcefn from_inner(inner: T) -> Self
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.