[][src]Struct boa::builtins::object::Object

pub struct 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]

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]

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]

Get the prototype of an object.

pub fn set_prototype_of(
    _: &Value,
    args: &[Value],
    ctx: &mut Context
) -> Result<Value>
[src]

Set the prototype of an object.

More information

pub fn is_prototype_of(
    this: &Value,
    args: &[Value],
    context: &mut Context
) -> Result<Value>
[src]

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]

Define a property in an object

pub fn define_properties(
    _: &Value,
    args: &[Value],
    context: &mut Context
) -> Result<Value>
[src]

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]

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]

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]

Trait Implementations

impl Clone for Object[src]

impl Copy for Object[src]

impl Debug for Object[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,