Skip to main content

IntoJSValue

Trait IntoJSValue 

Source
pub trait IntoJSValue {
    // Required method
    fn into_jsvalue(self, ctx: &mut JSContext) -> JSValue;
}

Required Methods§

Source

fn into_jsvalue(self, ctx: &mut JSContext) -> JSValue

Implementations on Foreign Types§

Source§

impl IntoJSValue for &str

Source§

fn into_jsvalue(self, ctx: &mut JSContext) -> JSValue

Source§

impl IntoJSValue for bool

Source§

fn into_jsvalue(self, _ctx: &mut JSContext) -> JSValue

Source§

impl IntoJSValue for f64

Source§

fn into_jsvalue(self, _ctx: &mut JSContext) -> JSValue

Source§

impl IntoJSValue for i32

Source§

fn into_jsvalue(self, _ctx: &mut JSContext) -> JSValue

Source§

impl IntoJSValue for i64

Source§

fn into_jsvalue(self, _ctx: &mut JSContext) -> JSValue

Source§

impl IntoJSValue for ()

Source§

fn into_jsvalue(self, _ctx: &mut JSContext) -> JSValue

Source§

impl IntoJSValue for String

Source§

fn into_jsvalue(self, ctx: &mut JSContext) -> JSValue

Source§

impl<T: IntoJSValue> IntoJSValue for Option<T>

Source§

fn into_jsvalue(self, ctx: &mut JSContext) -> JSValue

Implementors§