Struct rjs::rt::JsValue [] [src]

pub struct JsValue {
    // some fields omitted
}

Methods

impl JsValue

fn new_undefined() -> JsValue

fn new_null() -> JsValue

fn new_number(value: f64) -> JsValue

fn new_bool(value: bool) -> JsValue

fn ty(&self) -> JsType

fn is_null(&self) -> bool

fn is_undefined(&self) -> bool

fn is_null_or_undefined(&self) -> bool

fn unwrap_number(&self) -> f64

fn unwrap_bool(&self) -> bool

fn get_ptr<T>(&self) -> Ptr<T>

Trait Implementations

impl Debug for JsValue

fn fmt(&self, fmt: &mut Formatter) -> Result

Derived Implementations

impl PartialEq for JsValue

fn eq(&self, __arg_0: &JsValue) -> bool

fn ne(&self, __arg_0: &JsValue) -> bool

impl Clone for JsValue

fn clone(&self) -> JsValue

fn clone_from(&mut self, source: &Self)

impl Copy for JsValue