[−][src]Struct boa::builtins::object::Object
The global JavaScript object.
Implementations
impl Object
[src]
pub fn create(_: &Value, args: &[Value], context: &mut Context) -> Result<Value>
[src]
Object.create( proto, [propertiesObject] )
Creates a new object from the provided prototype.
More information:
pub fn get_own_property_descriptor(
_: &Value,
args: &[Value],
context: &mut Context
) -> Result<Value>
[src]
_: &Value,
args: &[Value],
context: &mut Context
) -> Result<Value>
Object.getOwnPropertyDescriptor( object, property )
Returns an object describing the configuration of a specific property on a given object.
More information:
pub fn get_own_property_descriptors(
_: &Value,
args: &[Value],
context: &mut Context
) -> Result<Value>
[src]
_: &Value,
args: &[Value],
context: &mut Context
) -> Result<Value>
Object.getOwnPropertyDescriptors( object )
Returns all own property descriptors of a given object.
More information:
pub fn is(_: &Value, args: &[Value], _: &mut Context) -> Result<Value>
[src]
Uses the SameValue algorithm to check equality of objects
pub fn get_prototype_of(
_: &Value,
args: &[Value],
ctx: &mut Context
) -> Result<Value>
[src]
_: &Value,
args: &[Value],
ctx: &mut Context
) -> Result<Value>
Get the prototype
of an object.
pub fn set_prototype_of(
_: &Value,
args: &[Value],
ctx: &mut Context
) -> Result<Value>
[src]
_: &Value,
args: &[Value],
ctx: &mut Context
) -> Result<Value>
Set the prototype
of an object.
pub fn is_prototype_of(
this: &Value,
args: &[Value],
context: &mut Context
) -> Result<Value>
[src]
this: &Value,
args: &[Value],
context: &mut Context
) -> Result<Value>
Object.prototype.isPrototypeOf( proto )
Check whether or not an object exists within another object's prototype chain.
More information:
pub fn define_property(
_: &Value,
args: &[Value],
context: &mut Context
) -> Result<Value>
[src]
_: &Value,
args: &[Value],
context: &mut Context
) -> Result<Value>
Define a property in an object
pub fn define_properties(
_: &Value,
args: &[Value],
context: &mut Context
) -> Result<Value>
[src]
_: &Value,
args: &[Value],
context: &mut Context
) -> Result<Value>
Object.defineProperties( proto, [propertiesObject] )
Creates or update own properties to the object
More information:
pub fn to_string(
this: &Value,
_: &[Value],
context: &mut Context
) -> Result<Value>
[src]
this: &Value,
_: &[Value],
context: &mut Context
) -> Result<Value>
Object.prototype.toString()
This method returns a string representing the object.
More information:
pub fn has_own_property(
this: &Value,
args: &[Value],
context: &mut Context
) -> Result<Value>
[src]
this: &Value,
args: &[Value],
context: &mut Context
) -> Result<Value>
Object.prototype.hasOwnPrototype( property )
The method returns a boolean indicating whether the object has the specified property as its own property (as opposed to inheriting it).
More information:
pub fn property_is_enumerable(
this: &Value,
args: &[Value],
context: &mut Context
) -> Result<Value>
[src]
this: &Value,
args: &[Value],
context: &mut Context
) -> Result<Value>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Object
[src]
impl Send for Object
[src]
impl Sync for Object
[src]
impl Unpin for Object
[src]
impl UnwindSafe for Object
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,