pub trait ToJsString<'a> {
// Required method
fn to_js_string(&self, ctx: &impl GlobalContext<'a>) -> Option<Cow<'a, str>>;
}Expand description
Required Methods§
fn to_js_string(&self, ctx: &impl GlobalContext<'a>) -> Option<Cow<'a, str>>
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.