Struct rjs::rt::JsValue
[−]
[src]
pub struct JsValue { // some fields omitted }
pub struct JsValue { // some fields omitted }
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>
impl Debug for JsValue
impl PartialEq for JsValue
impl Clone for JsValue
fn clone(&self) -> JsValue
fn clone_from(&mut self, source: &Self)
impl Copy for JsValue
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).
Search functions by type signature (e.g.
vec -> usize
)