Struct rjs::rt::JsNumber [] [src]

pub struct JsNumber {
    // some fields omitted
}

Methods

impl JsNumber

fn new(value: f64) -> JsNumber

Trait Implementations

impl JsItem for JsNumber

fn as_value(&self, env: &JsEnv) -> Local<JsValue>

fn has_prototype(&self, _: &JsEnv) -> bool

fn prototype(&self, env: &JsEnv) -> Option<Local<JsValue>>

fn get_own_property(&self, env: &JsEnv, property: Name) -> Option<JsDescriptor>

fn get_property(&self, env: &JsEnv, property: Name) -> Option<JsDescriptor>

fn get(&self, env: &mut JsEnv, property: Name) -> JsResult<Local<JsValue>>

fn can_put(&self, env: &JsEnv, property: Name) -> bool

fn put(&mut self, env: &mut JsEnv, property: Name, value: Local<JsValue>, throw: bool) -> JsResult<()>

fn has_property(&self, env: &JsEnv, property: Name) -> bool

fn delete(&mut self, env: &mut JsEnv, property: Name, throw: bool) -> JsResult<bool>

fn default_value(&self, env: &mut JsEnv, hint: JsPreferredType) -> JsResult<Local<JsValue>>

fn define_own_property(&mut self, env: &mut JsEnv, property: Name, descriptor: JsDescriptor, throw: bool) -> JsResult<bool>

fn is_callable(&self, env: &JsEnv) -> bool

fn call(&self, env: &mut JsEnv, this: Local<JsValue>, args: Vec<Local<JsValue>>, strict: bool) -> JsResult<Local<JsValue>>

fn can_construct(&self, env: &JsEnv) -> bool

fn construct(&self, env: &mut JsEnv, args: Vec<Local<JsValue>>) -> JsResult<Local<JsValue>>

fn set_prototype(&mut self, env: &JsEnv, prototype: Option<Local<JsValue>>)

fn has_class(&self, env: &JsEnv) -> bool

fn class(&self, env: &JsEnv) -> Option<Name>

fn set_class(&mut self, env: &JsEnv, class: Option<Name>)

fn is_extensible(&self, env: &JsEnv) -> bool

fn has_instance(&self, env: &mut JsEnv, object: Local<JsValue>) -> JsResult<bool>

fn scope(&self, env: &JsEnv) -> Option<Local<JsScope>>

fn set_scope(&mut self, env: &JsEnv, scope: Option<Local<JsScope>>)