Trait WrapsMut

Source
pub trait WrapsMut<T>: Wraps<T> {
    // Required method
    fn inner_mut(&mut self) -> &mut 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 Wraps<T>

Required Methods§

Source

fn inner_mut(&mut self) -> &mut T

Converts an exclusive reference to a WASM type to an exclusive reference to the underlying Rust 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§