[][src]Struct js_sys::Object

#[repr(transparent)]
pub struct Object { /* fields omitted */ }

Methods

impl Object
[src]

The Object.assign() method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object.

MDN documentation

impl Object
[src]

The Object.assign() method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object.

MDN documentation

impl Object
[src]

The Object.assign() method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object.

MDN documentation

impl Object
[src]

The Object.create() method creates a new object, using an existing object to provide the newly created object's prototype.

MDN documentation

impl Object
[src]

The static method Object.defineProperty() defines a new property directly on an object, or modifies an existing property on an object, and returns the object.

MDN documentation

impl Object
[src]

The Object.defineProperties() method defines new or modifies existing properties directly on an object, returning the object.

MDN documentation

impl Object
[src]

The Object.entries() method returns an array of a given object's own enumerable property [key, value] pairs, in the same order as that provided by a for...in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).

MDN documentation

impl Object
[src]

The Object.freeze() method freezes an object: that is, prevents new properties from being added to it; prevents existing properties from being removed; and prevents existing properties, or their enumerability, configurability, or writability, from being changed, it also prevents the prototype from being changed. The method returns the passed object.

MDN documentation

impl Object
[src]

The Object.getOwnPropertyDescriptor() method returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.

MDN documentation

impl Object
[src]

The Object.getOwnPropertyDescriptors() method returns all own property descriptors of a given object.

MDN documentation

impl Object
[src]

The Object.getOwnPropertyNames() method returns an array of all properties (including non-enumerable properties except for those which use Symbol) found directly upon a given object.

MDN documentation

impl Object
[src]

The Object.getOwnPropertySymbols() method returns an array of all symbol properties found directly upon a given object.

MDN documentation

impl Object
[src]

The Object.getPrototypeOf() method returns the prototype (i.e. the value of the internal [[Prototype]] property) of the specified object.

MDN documentation

impl Object
[src]

The hasOwnProperty() method returns a boolean indicating whether the object has the specified property as its own property (as opposed to inheriting it).

MDN documentation

impl Object
[src]

The Object.is() method determines whether two values are the same value.

MDN documentation

impl Object
[src]

The Object.isExtensible() method determines if an object is extensible (whether it can have new properties added to it).

MDN documentation

impl Object
[src]

The Object.isFrozen() determines if an object is frozen.

MDN documentation

impl Object
[src]

The Object.isSealed() method determines if an object is sealed.

MDN documentation

impl Object
[src]

The isPrototypeOf() method checks if an object exists in another object's prototype chain.

MDN documentation

impl Object
[src]

The Object.keys() method returns an array of a given object's property names, in the same order as we get with a normal loop.

MDN documentation

impl Object
[src]

The Object constructor creates an object wrapper.

MDN documentation

impl Object
[src]

The Object.preventExtensions() method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object).

MDN documentation

impl Object
[src]

The propertyIsEnumerable() method returns a Boolean indicating whether the specified property is enumerable.

MDN documentation

impl Object
[src]

The Object.seal() method seals an object, preventing new properties from being added to it and marking all existing properties as non-configurable. Values of present properties can still be changed as long as they are writable.

MDN documentation

impl Object
[src]

The Object.setPrototypeOf() method sets the prototype (i.e., the internal [[Prototype]] property) of a specified object to another object or null.

MDN documentation

impl Object
[src]

The toLocaleString() method returns a string representing the object. This method is meant to be overridden by derived objects for locale-specific purposes.

MDN documentation

impl Object
[src]

The toString() method returns a string representing the object.

MDN documentation

impl Object
[src]

The valueOf() method returns the primitive value of the specified object.

MDN documentation

impl Object
[src]

The Object.values() method returns an array of a given object's own enumerable property values, in the same order as that provided by a for...in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).

MDN documentation

impl Object
[src]

Returns the Object value of this JS value if it's an instance of an object.

If this JS value is not an instance of an object then this returns None.

Methods from Deref<Target = JsValue>

Returns the f64 value of this JS value if it's an instance of a number.

If this JS value is not an instance of a number then this returns None.

Tests whether this JS value is a JS string.

If this JS value is a string value, this function copies the JS string value into wasm linear memory, encoded as UTF-8, and returns it as a Rust String.

To avoid the copying and re-encoding, consider the JsString::try_from() function from js-sys instead.

If this JS value is not an instance of a string or if it's not valid utf-8 then this returns None.

Returns the bool value of this JS value if it's an instance of a boolean.

If this JS value is not an instance of a boolean then this returns None.

Tests whether this JS value is null

Tests whether this JS value is undefined

Tests whether the type of this JS value is symbol

Tests whether typeof self == "object" && self !== null.

Tests whether the type of this JS value is function.

Trait Implementations

impl AsRef<Object> for Array
[src]

impl AsRef<Object> for ArrayBuffer
[src]

impl AsRef<Object> for Boolean
[src]

impl AsRef<Object> for DataView
[src]

impl AsRef<Object> for Error
[src]

impl AsRef<Object> for EvalError
[src]

impl AsRef<Object> for Function
[src]

impl AsRef<Object> for Generator
[src]

impl AsRef<Object> for Map
[src]

impl AsRef<Object> for Math
[src]

impl AsRef<Object> for Number
[src]

impl AsRef<Object> for Date
[src]

impl AsRef<JsValue> for Object
[src]

impl AsRef<Object> for RangeError
[src]

impl AsRef<Object> for ReferenceError
[src]

impl AsRef<Object> for Reflect
[src]

impl AsRef<Object> for RegExp
[src]

impl AsRef<Object> for Set
[src]

impl AsRef<Object> for SyntaxError
[src]

impl AsRef<Object> for TypeError
[src]

impl AsRef<Object> for UriError
[src]

impl AsRef<Object> for WeakMap
[src]

impl AsRef<Object> for WeakSet
[src]

impl AsRef<Object> for Instance
[src]

impl AsRef<Object> for Module
[src]

impl AsRef<Object> for Table
[src]

impl AsRef<Object> for Memory
[src]

impl AsRef<Object> for JSON
[src]

impl AsRef<Object> for JsString
[src]

impl AsRef<Object> for Collator
[src]

impl AsRef<Object> for DateTimeFormat
[src]

impl AsRef<Object> for NumberFormat
[src]

impl AsRef<Object> for PluralRules
[src]

impl AsRef<Object> for Promise
[src]

impl AsRef<Object> for Int8Array
[src]

impl AsRef<Object> for Int16Array
[src]

impl AsRef<Object> for Int32Array
[src]

impl AsRef<Object> for Uint8Array
[src]

impl AsRef<Object> for Uint8ClampedArray
[src]

impl AsRef<Object> for Uint16Array
[src]

impl AsRef<Object> for Uint32Array
[src]

impl AsRef<Object> for Float32Array
[src]

impl AsRef<Object> for Float64Array
[src]

impl From<Array> for Object
[src]

impl From<ArrayBuffer> for Object
[src]

impl From<Boolean> for Object
[src]

impl From<DataView> for Object
[src]

impl From<Error> for Object
[src]

impl From<EvalError> for Object
[src]

impl From<Function> for Object
[src]

impl From<Generator> for Object
[src]

impl From<Map> for Object
[src]

impl From<Math> for Object
[src]

impl From<Number> for Object
[src]

impl From<Date> for Object
[src]

impl From<JsValue> for Object
[src]

impl From<Object> for JsValue
[src]

impl From<RangeError> for Object
[src]

impl From<ReferenceError> for Object
[src]

impl From<Reflect> for Object
[src]

impl From<RegExp> for Object
[src]

impl From<Set> for Object
[src]

impl From<SyntaxError> for Object
[src]

impl From<TypeError> for Object
[src]

impl From<UriError> for Object
[src]

impl From<WeakMap> for Object
[src]

impl From<WeakSet> for Object
[src]

impl From<Instance> for Object
[src]

impl From<Module> for Object
[src]

impl From<Table> for Object
[src]

impl From<Memory> for Object
[src]

impl From<JSON> for Object
[src]

impl From<JsString> for Object
[src]

impl From<Collator> for Object
[src]

impl From<DateTimeFormat> for Object
[src]

impl From<NumberFormat> for Object
[src]

impl From<PluralRules> for Object
[src]

impl From<Promise> for Object
[src]

impl From<Int8Array> for Object
[src]

impl From<Int16Array> for Object
[src]

impl From<Int32Array> for Object
[src]

impl From<Uint8Array> for Object
[src]

impl From<Uint8ClampedArray> for Object
[src]

impl From<Uint16Array> for Object
[src]

impl From<Uint32Array> for Object
[src]

impl From<Float32Array> for Object
[src]

impl From<Float64Array> for Object
[src]

impl Clone for Object
[src]

Performs copy-assignment from source. Read more

impl Debug for Object
[src]

impl Deref for Object
[src]

The resulting type after dereferencing.

impl WasmDescribe for Object
[src]

impl IntoWasmAbi for Object
[src]

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a Object
[src]

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl FromWasmAbi for Object
[src]

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl OptionFromWasmAbi for Object
[src]

impl RefFromWasmAbi for Object
[src]

The wasm ABI type references to Self are recovered from.

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl OptionIntoWasmAbi for Object
[src]

impl<'a> OptionIntoWasmAbi for &'a Object
[src]

impl JsCast for Object
[src]

Test whether this JS value is an instance of the type T. Read more

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

Performs a zero-cost unchecked cast into the specified type. Read more

Performs a zero-cost unchecked cast into a reference to the specified type. Read more

Auto Trait Implementations

impl !Send for Object

impl !Sync for Object

Blanket Implementations

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

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

Same as IntoWasmAbi::Abi