IntoValue

Trait IntoValue 

Source
pub trait IntoValue<'cx> {
    // Required method
    fn into_value(self: Box<Self>, cx: &'cx Context, value: &mut Value<'_>);
}
Expand description

Represents types that can be converted to JavaScript Values with ownership. Primarily used with dynamic dispatch and BoxedIntoValue.

Required Methods§

Source

fn into_value(self: Box<Self>, cx: &'cx Context, value: &mut Value<'_>)

Converts self into a Value and stores it in value.

Implementors§