[−][src]Struct boa::builtins::object::Object
The global JavaScript object.
Implementations
impl Object[src]
pub fn make_object(
_: &Value,
args: &[Value],
ctx: &mut Context
) -> Result<Value>[src]
_: &Value,
args: &[Value],
ctx: &mut Context
) -> Result<Value>
Create a new object.
pub fn create(
_: &Value,
args: &[Value],
interpreter: &mut Context
) -> Result<Value>[src]
_: &Value,
args: &[Value],
interpreter: &mut Context
) -> Result<Value>
Object.create( proto, [propertiesObject] )
Creates a new object from the provided prototype.
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],
_: &mut Context
) -> Result<Value>[src]
_: &Value,
args: &[Value],
_: &mut Context
) -> Result<Value>
Get the prototype of an object.
pub fn set_prototype_of(
_: &Value,
args: &[Value],
_: &mut Context
) -> Result<Value>[src]
_: &Value,
args: &[Value],
_: &mut Context
) -> Result<Value>
Set the prototype of an object.
pub fn define_property(
_: &Value,
args: &[Value],
ctx: &mut Context
) -> Result<Value>[src]
_: &Value,
args: &[Value],
ctx: &mut Context
) -> Result<Value>
Define a property in an object
pub fn to_string(this: &Value, _: &[Value], ctx: &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],
ctx: &mut Context
) -> Result<Value>[src]
this: &Value,
args: &[Value],
ctx: &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],
ctx: &mut Context
) -> Result<Value>[src]
this: &Value,
args: &[Value],
ctx: &mut Context
) -> Result<Value>
pub fn init(interpreter: &mut Context) -> (&'static str, Value)[src]
Initialise the Object object on the global object.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
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,
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.
fn to_owned(&self) -> T[src]
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.
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.
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>,