Struct rjs::gc::handles::local::Local [] [src]

pub struct Local<T> {
    // some fields omitted
}

Methods

impl<T> Local<T>

unsafe fn new(handle: *const Ptr<T>) -> Local<T>

fn as_root<U: GcAllocator>(&self, allocator: &U) -> Root<T>

impl Local<JsValue>

fn unwrap_string<T: GcAllocator>(&self, allocator: &T) -> Local<JsString>

fn unwrap_object<T: GcAllocator>(&self, allocator: &T) -> Local<JsObject>

fn unwrap_iterator<T: GcAllocator>(&self, allocator: &T) -> Local<JsIterator>

fn unwrap_scope<T: GcAllocator>(&self, allocator: &T) -> Local<JsScope>

fn unwrap_regexp<T: GcAllocator>(&self, allocator: &T) -> Local<JsRegExp>

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

fn to_boolean(&self) -> bool

fn to_number(&self, env: &mut JsEnv) -> JsResult<f64>

fn to_integer(&self, env: &mut JsEnv) -> JsResult<f64>

fn to_int32(&self, env: &mut JsEnv) -> JsResult<i32>

fn to_uint32(&self, env: &mut JsEnv) -> JsResult<u32>

fn to_uint32_exact(&self, env: &mut JsEnv) -> JsResult<Option<u32>>

fn to_uint16(&self, env: &mut JsEnv) -> JsResult<u16>

fn to_string(&self, env: &mut JsEnv) -> JsResult<Local<JsString>>

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

fn check_object_coercible(&self, env: &mut JsEnv) -> JsResult<()>

impl Local<HashStore>

fn len(&self) -> usize

impl Local<SparseArray>

fn capacity(&self) -> usize

fn get_value(&self, index: usize) -> Entry

fn set_value(&mut self, env: &JsEnv, index: usize, value: Local<Entry>)

fn get_key(&self, offset: usize) -> StoreKey

impl Local<JsObject>

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

fn set_value(&mut self, value: Local<JsValue>)

fn extensible(&self) -> bool

fn set_extensible(&mut self, extensible: bool)

fn function(&self) -> Option<JsFunction>

fn get_key(&self, env: &JsEnv, offset: usize) -> JsStoreKey

impl Local<JsIterator>

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

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

fn current(&self) -> Name

impl Local<JsScope>

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

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

fn scope_object(&self, env: &JsEnv) -> Local<JsObject>

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

fn set_arguments(&mut self, arguments: Local<JsValue>)

fn len(&self) -> usize

fn get(&self, env: &JsEnv, index: usize) -> Local<JsValue>

fn set(&mut self, index: usize, value: Local<JsValue>)

impl Local<JsRegExp>

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

fn regex<'a>(&'a self) -> &'a Regex

fn pattern(&self, env: &JsEnv) -> Local<JsString>

fn flags(&self, env: &JsEnv) -> Local<JsString>

fn global(&self) -> bool

fn ignore_case(&self) -> bool

fn multiline(&self) -> bool

Trait Implementations

impl<T> Copy for Local<T>

impl<T> Clone for Local<T>

fn clone(&self) -> Local<T>

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

impl<T> Deref for Local<T>

type Target = T

fn deref(&self) -> &T

impl<T> DerefMut for Local<T>

fn deref_mut(&mut self) -> &mut T

impl<T> AsPtr<T> for Local<T>

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

impl PartialEq for Local<JsValue>

fn eq(&self, other: &Local<JsValue>) -> bool

fn ne(&self, other: &Rhs) -> bool

impl JsItem for Local<JsValue>

fn as_value(&self, _: &JsEnv) -> 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 has_prototype(&self, env: &JsEnv) -> bool

fn prototype(&self, env: &JsEnv) -> Option<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>>)

impl JsItem for Local<JsObject>

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

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

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

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

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

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

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

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

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

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

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

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

fn is_extensible(&self, _: &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, _: &JsEnv, scope: Option<Local<JsScope>>)

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 default_value(&self, env: &mut JsEnv, hint: JsPreferredType) -> JsResult<Local<JsValue>>

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

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

impl JsItem for Local<JsString>

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>>)