pub trait IntoValue {
const VALUE_TYPE: ValueType;
// Required method
fn into_value(self) -> Value;
}
Expand description
Something that can be converted into a wasm compatible Value
.
Required Associated Constants§
Sourceconst VALUE_TYPE: ValueType
const VALUE_TYPE: ValueType
The type of the value in wasm.
Required Methods§
Sourcefn into_value(self) -> Value
fn into_value(self) -> Value
Convert self
into a wasm Value
.
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.