pub trait Wraps<T>: From<T> {
    fn inner(&self) -> &T;
}
Expand description

Most WASM types are wrapping a Rust type one-on-one. This trait helps to enforce a convention so that WASM types can easily peek under the hood of other such wrapped WASM types.

See also WrapsMut<T>

Required Methods

Converts a reference to a WASM type to a reference to the underlying Rust type.

Implementors