Skip to main content

IntoJsGeneric

Trait IntoJsGeneric 

Source
pub trait IntoJsGeneric {
    type JsCanon: JsGeneric;

    // Required method
    fn to_js(self) -> Self::JsCanon;
}
Expand description

Converts a value into its canonical JS-generic representation.

Required Associated Types§

Required Methods§

Source

fn to_js(self) -> Self::JsCanon

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: IntoJsGeneric + Clone> IntoJsGeneric for &T

Implementors§