Skip to main content

ToJS

Trait ToJS 

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

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl ToJS for &str

Source§

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

Source§

impl ToJS for bool

Source§

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

Source§

impl ToJS for f64

Source§

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

Source§

impl ToJS for i32

Source§

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

Source§

impl ToJS for i64

Source§

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

Source§

impl ToJS for ()

Source§

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

Source§

impl ToJS for String

Source§

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

Source§

impl<T: ToJS> ToJS for Option<T>

Source§

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

Implementors§