Trait ToStringValue

Source
pub trait ToStringValue {
    type Js: AsRef<JsValue>;

    // Required method
    fn to_string_value(self) -> Self::Js;
}
Expand description

A value that can be represented as a JS string.

Required Associated Types§

Required Methods§

Source

fn to_string_value(self) -> Self::Js

Implementations on Foreign Types§

Source§

impl ToStringValue for &str

Source§

impl ToStringValue for &String

Source§

impl ToStringValue for String

Source§

impl ToStringValue for JsString

Source§

impl<'str> ToStringValue for &'str JsString

Source§

type Js = &'str JsValue

Source§

fn to_string_value(self) -> Self::Js

Implementors§