[][src]Trait js_ffi::JSConvert

pub trait JSConvert {
    fn to_string(&self) -> String;
fn to_js_object(&self) -> JSObject;
fn to_bool(&self) -> bool;
fn is_null(&self) -> bool;
fn is_undefined(&self) -> bool;
fn to_vec<Q>(&self) -> Vec<Q>
    where
        Q: Copy
; }

Required methods

fn to_string(&self) -> String

fn to_js_object(&self) -> JSObject

fn to_bool(&self) -> bool

fn is_null(&self) -> bool

fn is_undefined(&self) -> bool

fn to_vec<Q>(&self) -> Vec<Q> where
    Q: Copy

Loading content...

Implementors

impl JSConvert for JSValue[src]

Loading content...