Struct rjs::rt::JsEnv
[−]
[src]
pub struct JsEnv { // some fields omitted }
pub struct JsEnv { // some fields omitted }
impl JsEnv
fn call_block(&mut self, block: Rc<Block>, args: JsArgs, function: &IrFunction, scope: Local<JsScope>) -> JsResult<()>
impl JsEnv
fn add(&mut self, lhs: Local<JsValue>, rhs: Local<JsValue>) -> JsResult<Local<JsValue>>
fn subtract(&mut self, lhs: Local<JsValue>, rhs: Local<JsValue>) -> JsResult<f64>
fn negative(&mut self, expr: Local<JsValue>) -> JsResult<f64>
fn positive(&mut self, expr: Local<JsValue>) -> JsResult<f64>
fn call(&mut self, mode: JsFnMode, args: JsArgs) -> JsResult<()>
fn construct(&mut self, args: JsArgs) -> JsResult<()>
fn type_of(&mut self, value: Local<JsValue>) -> Local<JsString>
fn compare(&mut self, x: Local<JsValue>, y: Local<JsValue>, left_first: bool) -> JsResult<ComparisonResult>
fn compare_string(&mut self, x: Local<JsValue>, y: Local<JsValue>) -> ComparisonResult
fn compare_lt(&mut self, lval: Local<JsValue>, rval: Local<JsValue>) -> JsResult<bool>
fn compare_gt(&mut self, lval: Local<JsValue>, rval: Local<JsValue>) -> JsResult<bool>
fn compare_le(&mut self, lval: Local<JsValue>, rval: Local<JsValue>) -> JsResult<bool>
fn compare_ge(&mut self, lval: Local<JsValue>, rval: Local<JsValue>) -> JsResult<bool>
fn new_function(&mut self, function_ref: FunctionRef, scope: Option<Local<JsScope>>, strict: bool) -> JsResult<Local<JsValue>>
fn instanceof(&mut self, lval: Local<JsValue>, rval: Local<JsValue>) -> JsResult<Local<JsValue>>
fn logical_not(&mut self, value: Local<JsValue>) -> Local<JsValue>
fn eq(&mut self, lval: Local<JsValue>, rval: Local<JsValue>) -> JsResult<bool>
fn ne(&mut self, lref: Local<JsValue>, rref: Local<JsValue>) -> JsResult<bool>
fn strict_eq(&mut self, lval: Local<JsValue>, rval: Local<JsValue>) -> bool
fn create_object(&self) -> Local<JsObject>
fn create_array(&mut self) -> Local<JsObject>
fn same_value(&self, x: Local<JsValue>, y: Local<JsValue>) -> bool
fn new_arguments(&mut self, args: &JsArgs, strict: bool) -> JsResult<Local<JsValue>>
fn in_(&mut self, lhs: Local<JsValue>, rhs: Local<JsValue>) -> JsResult<Local<JsValue>>
fn multiply(&mut self, lhs: Local<JsValue>, rhs: Local<JsValue>) -> JsResult<f64>
fn divide(&mut self, lhs: Local<JsValue>, rhs: Local<JsValue>) -> JsResult<f64>
fn modulus(&mut self, lhs: Local<JsValue>, rhs: Local<JsValue>) -> JsResult<f64>
fn bit_and(&mut self, lhs: Local<JsValue>, rhs: Local<JsValue>) -> JsResult<f64>
fn bit_or(&mut self, lhs: Local<JsValue>, rhs: Local<JsValue>) -> JsResult<f64>
fn bit_xor(&mut self, lhs: Local<JsValue>, rhs: Local<JsValue>) -> JsResult<f64>
fn bit_not(&mut self, arg: Local<JsValue>) -> JsResult<f64>
fn lsh(&mut self, lhs: Local<JsValue>, rhs: Local<JsValue>) -> JsResult<f64>
fn rsh(&mut self, lhs: Local<JsValue>, rhs: Local<JsValue>) -> JsResult<f64>
fn unsigned_rsh(&mut self, lhs: Local<JsValue>, rhs: Local<JsValue>) -> JsResult<f64>
impl JsEnv
fn new_value(&self) -> Local<JsValue>
fn new_undefined(&self) -> Local<JsValue>
fn new_null(&self) -> Local<JsValue>
fn new_number(&self, value: f64) -> Local<JsValue>
fn new_bool(&self, value: bool) -> Local<JsValue>
fn new_string(&self, value: Local<JsString>) -> Local<JsValue>
fn new_object(&self, value: Local<JsObject>) -> Local<JsValue>
fn new_iterator(&self, value: Local<JsIterator>) -> Local<JsValue>
fn new_scope(&self, value: Local<JsScope>) -> Local<JsValue>
fn new_regexp(&self, value: Local<JsRegExp>) -> Local<JsValue>
impl JsEnv
fn new() -> JsResult<JsEnv>
fn handle(&self, handle: JsHandle) -> Local<JsObject>
fn run(&mut self, file_name: &str) -> JsResult<Root<JsValue>>
fn run_strict(&mut self, file_name: &str, strict: bool) -> JsResult<Root<JsValue>>
fn eval(&mut self, js: &str) -> JsResult<Root<JsValue>>
fn intern(&self, name: &str) -> Name
fn intern_value(&mut self, value: Local<JsValue>) -> JsResult<Name>
fn new_local_scope(&self) -> LocalScope
impl GcAllocator for JsEnv
fn alloc_array_local_from_root<T>(&self, root: &ArrayRoot<T>) -> ArrayLocal<T>
fn alloc_array_root_from_local<T>(&self, local: ArrayLocal<T>) -> ArrayRoot<T>
fn alloc_array_local_from_array<T>(&self, array: Array<T>) -> ArrayLocal<T>
fn alloc_root_from_local<T>(&self, local: Local<T>) -> Root<T>
fn alloc_local_from_ptr<T>(&self, ptr: Ptr<T>) -> Local<T>
fn alloc_local_from_root<T>(&self, root: &Root<T>) -> Local<T>
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
)