pub struct Object<T = JsValue> { /* private fields */ }Implementations§
Source§impl Object
impl Object
Sourcepub fn assign<T>(target: &Object<T>, source: &Object<T>) -> Object<T>
pub fn assign<T>(target: &Object<T>, source: &Object<T>) -> Object<T>
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.
Note: Consider using Object::try_assign to support error handling.
Source§impl Object
impl Object
Sourcepub fn try_assign<T>(
target: &Object<T>,
source: &Object<T>,
) -> Result<Object<T>, JsValue>
pub fn try_assign<T>( target: &Object<T>, source: &Object<T>, ) -> Result<Object<T>, JsValue>
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.
Note: Consider using Object::try_assign to support error handling.
Source§impl Object
impl Object
Sourcepub fn assign2<T>(
target: &Object<T>,
source1: &Object<T>,
source2: &Object<T>,
) -> Object<T>
👎Deprecated: use assign_many for arbitrary assign arguments instead
pub fn assign2<T>( target: &Object<T>, source1: &Object<T>, source2: &Object<T>, ) -> Object<T>
assign_many for arbitrary assign arguments insteadThe 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.
Source§impl Object
impl Object
Sourcepub fn assign3<T>(
target: &Object<T>,
source1: &Object<T>,
source2: &Object<T>,
source3: &Object<T>,
) -> Object<T>
👎Deprecated: use assign_many for arbitrary assign arguments instead
pub fn assign3<T>( target: &Object<T>, source1: &Object<T>, source2: &Object<T>, source3: &Object<T>, ) -> Object<T>
assign_many for arbitrary assign arguments insteadThe 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.
Source§impl Object
impl Object
Source§impl<T> Object<T>
impl<T> Object<T>
Sourcepub fn constructor(&self) -> Function
pub fn constructor(&self) -> Function
The constructor property returns a reference to the Object constructor
function that created the instance object.
Source§impl Object
impl Object
Sourcepub fn define_property<T>(
obj: &Object<T>,
prop: &JsValue,
descriptor: &Object,
) -> Object<T>
pub fn define_property<T>( obj: &Object<T>, prop: &JsValue, descriptor: &Object, ) -> Object<T>
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.
Note: Consider using Object::define_property_str to support typing and error handling.
Source§impl Object
impl Object
Sourcepub fn define_property_str<T>(
obj: &Object<T>,
prop: &JsString,
descriptor: &PropertyDescriptor<T>,
) -> Result<Object<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + ErasableGenericOwn<Object<JsValue>>,
PropertyDescriptor<T>: ErasableGenericBorrow<PropertyDescriptor<JsValue>>,
pub fn define_property_str<T>(
obj: &Object<T>,
prop: &JsString,
descriptor: &PropertyDescriptor<T>,
) -> Result<Object<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + ErasableGenericOwn<Object<JsValue>>,
PropertyDescriptor<T>: ErasableGenericBorrow<PropertyDescriptor<JsValue>>,
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.
Source§impl Object
impl Object
Sourcepub fn define_property_symbol<T>(
obj: &Object<T>,
prop: &Symbol,
descriptor: &PropertyDescriptor<JsValue>,
) -> Result<Object<T>, JsValue>
pub fn define_property_symbol<T>( obj: &Object<T>, prop: &Symbol, descriptor: &PropertyDescriptor<JsValue>, ) -> Result<Object<T>, JsValue>
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.
Source§impl Object
impl Object
Sourcepub fn define_properties<T>(obj: &Object<T>, props: &Object) -> Object<T>
pub fn define_properties<T>(obj: &Object<T>, props: &Object) -> Object<T>
The Object.defineProperties() method defines new or modifies
existing properties directly on an object, returning the
object.
Note: Consider using [Object::try_define_properties] to support typing and error handling.
Source§impl Object
impl Object
Sourcepub fn entries(object: &Object) -> Array
pub fn entries(object: &Object) -> Array
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).
Note: Consider using Object::entries_typed to support typing and error handling.
Source§impl Object
impl Object
Sourcepub fn entries_typed<T>(
object: &Object<T>,
) -> Result<Array<ArrayTuple<(JsString, T)>>, JsValue>
pub fn entries_typed<T>( object: &Object<T>, ) -> Result<Array<ArrayTuple<(JsString, T)>>, JsValue>
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).
Source§impl Object
impl Object
Sourcepub fn freeze<T>(value: &Object<T>) -> Object<T>
pub fn freeze<T>(value: &Object<T>) -> Object<T>
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.
Source§impl Object
impl Object
Sourcepub fn from_entries(entries: &JsValue) -> Result<Object, JsValue>
pub fn from_entries(entries: &JsValue) -> Result<Object, JsValue>
The Object.fromEntries() method transforms a list of key-value pairs
into an object.
Note: Consider using Object::from_entries_typed to support typing and error handling.
Source§impl Object
impl Object
Source§impl Object
impl Object
Sourcepub fn get_own_property_descriptor<T>(
obj: &Object<T>,
prop: &JsValue,
) -> JsValue
pub fn get_own_property_descriptor<T>( obj: &Object<T>, prop: &JsValue, ) -> JsValue
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.
Source§impl Object
impl Object
Sourcepub fn get_own_property_descriptor_str<T>(
obj: &Object<T>,
prop: &JsString,
) -> Result<PropertyDescriptor<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>>,
PropertyDescriptor<T>: ErasableGenericOwn<PropertyDescriptor<JsValue>>,
pub fn get_own_property_descriptor_str<T>(
obj: &Object<T>,
prop: &JsString,
) -> Result<PropertyDescriptor<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>>,
PropertyDescriptor<T>: ErasableGenericOwn<PropertyDescriptor<JsValue>>,
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.
Source§impl Object
impl Object
Sourcepub fn get_own_property_descriptor_symbol<T>(
obj: &Object<T>,
prop: &Symbol,
) -> Result<PropertyDescriptor<JsValue>, JsValue>
pub fn get_own_property_descriptor_symbol<T>( obj: &Object<T>, prop: &Symbol, ) -> Result<PropertyDescriptor<JsValue>, JsValue>
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.
Source§impl Object
impl Object
Sourcepub fn get_own_property_descriptors<T>(obj: &Object<T>) -> JsValue
pub fn get_own_property_descriptors<T>(obj: &Object<T>) -> JsValue
The Object.getOwnPropertyDescriptors() method returns all own
property descriptors of a given object.
Source§impl Object
impl Object
Sourcepub fn get_own_property_names<T>(obj: &Object<T>) -> Array
pub fn get_own_property_names<T>(obj: &Object<T>) -> Array
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.
Source§impl Object
impl Object
Sourcepub fn get_own_property_symbols<T>(obj: &Object<T>) -> Array
pub fn get_own_property_symbols<T>(obj: &Object<T>) -> Array
The Object.getOwnPropertySymbols() method returns an array of
all symbol properties found directly upon a given object.
Source§impl Object
impl Object
Sourcepub fn get_prototype_of(obj: &JsValue) -> Object
pub fn get_prototype_of(obj: &JsValue) -> Object
The Object.getPrototypeOf() method returns the prototype
(i.e. the value of the internal [[Prototype]] property) of the
specified object.
Source§impl<T> Object<T>
impl<T> Object<T>
Sourcepub fn has_own_property(&self, property: &JsValue) -> bool
👎Deprecated: Use Object::hasOwn instead.
pub fn has_own_property(&self, property: &JsValue) -> bool
Object::hasOwn instead.The hasOwnProperty() method returns a boolean indicating whether the
object has the specified property as its own property (as opposed to
inheriting it).
Source§impl Object
impl Object
Source§impl Object
impl Object
Source§impl Object
impl Object
Source§impl Object
impl Object
Sourcepub fn is_extensible<T>(object: &Object<T>) -> bool
pub fn is_extensible<T>(object: &Object<T>) -> bool
The Object.isExtensible() method determines if an object is extensible
(whether it can have new properties added to it).
Source§impl<T> Object<T>
impl<T> Object<T>
Sourcepub fn is_prototype_of(&self, value: &JsValue) -> bool
pub fn is_prototype_of(&self, value: &JsValue) -> bool
The isPrototypeOf() method checks if an object exists in another
object’s prototype chain.
Source§impl Object
impl Object
Sourcepub fn new() -> Object
pub fn new() -> Object
The Object constructor creates an object wrapper.
Note: Consider using Object::new_typed for typed object records.
Source§impl Object
impl Object
Sourcepub fn prevent_extensions<T>(object: &Object<T>)
pub fn prevent_extensions<T>(object: &Object<T>)
The Object.preventExtensions() method prevents new properties from
ever being added to an object (i.e. prevents future extensions to the
object).
Source§impl<T> Object<T>
impl<T> Object<T>
Sourcepub fn property_is_enumerable(&self, property: &JsValue) -> bool
pub fn property_is_enumerable(&self, property: &JsValue) -> bool
The propertyIsEnumerable() method returns a Boolean indicating
whether the specified property is enumerable.
Source§impl Object
impl Object
Source§impl Object
impl Object
Sourcepub fn set_prototype_of<T>(object: &Object<T>, prototype: &Object) -> Object<T>
pub fn set_prototype_of<T>(object: &Object<T>, prototype: &Object) -> Object<T>
The Object.setPrototypeOf() method sets the prototype (i.e., the
internal [[Prototype]] property) of a specified object to another
object or null.
Note: Consider using Object::try_set_prototype_of to support errors.
Source§impl Object
impl Object
Source§impl<T> Object<T>
impl<T> Object<T>
Sourcepub fn to_locale_string(&self) -> JsString
pub fn to_locale_string(&self) -> JsString
The toLocaleString() method returns a string representing the object.
This method is meant to be overridden by derived objects for
locale-specific purposes.
Source§impl<T> Object<T>
impl<T> Object<T>
Source§impl<T> Object<T>
impl<T> Object<T>
Sourcepub fn to_js_string(&self) -> JsString
pub fn to_js_string(&self) -> JsString
The toString() method returns a string representing the object.
Source§impl<T> Object<T>
impl<T> Object<T>
Source§impl Object
impl Object
Sourcepub fn values<T>(object: &Object<T>) -> Array<T>
pub fn values<T>(object: &Object<T>) -> Array<T>
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).
Note: Consider using Object::try_values to support errors.
Source§impl Object
impl Object
Sourcepub fn try_values<T>(object: &Object<T>) -> Result<Array<T>, JsValue>
pub fn try_values<T>(object: &Object<T>) -> Result<Array<T>, JsValue>
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).
Methods from Deref<Target = JsValue>§
pub const NULL: JsValue
pub const UNDEFINED: JsValue
pub const TRUE: JsValue
pub const FALSE: JsValue
Sourcepub fn as_f64(&self) -> Option<f64>
pub fn as_f64(&self) -> Option<f64>
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.
Sourcepub fn as_string(&self) -> Option<String>
pub fn as_string(&self) -> Option<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.
§UTF-16 vs UTF-8
JavaScript strings in general are encoded as UTF-16, but Rust strings
are encoded as UTF-8. This can cause the Rust string to look a bit
different than the JS string sometimes. For more details see the
documentation about the str type which contains a few
caveats about the encodings.
Sourcepub fn as_bool(&self) -> Option<bool>
pub fn as_bool(&self) -> Option<bool>
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.
Sourcepub fn is_undefined(&self) -> bool
pub fn is_undefined(&self) -> bool
Tests whether this JS value is undefined
Sourcepub fn is_null_or_undefined(&self) -> bool
pub fn is_null_or_undefined(&self) -> bool
Tests whether this JS value is null or undefined
Sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Tests whether the type of this JS value is function.
Sourcepub fn js_in(&self, obj: &JsValue) -> bool
pub fn js_in(&self, obj: &JsValue) -> bool
Applies the binary in JS operator on the two JsValues.
Sourcepub fn loose_eq(&self, other: &JsValue) -> bool
pub fn loose_eq(&self, other: &JsValue) -> bool
Compare two JsValues for equality, using the == operator in JS.
Sourcepub fn unsigned_shr(&self, rhs: &JsValue) -> u32
pub fn unsigned_shr(&self, rhs: &JsValue) -> u32
Applies the binary >>> JS operator on the two JsValues.
Sourcepub fn checked_div(&self, rhs: &JsValue) -> JsValue
pub fn checked_div(&self, rhs: &JsValue) -> JsValue
Applies the binary / JS operator on two JsValues, catching and returning any RangeError thrown.
Sourcepub fn pow(&self, rhs: &JsValue) -> JsValue
pub fn pow(&self, rhs: &JsValue) -> JsValue
Applies the binary ** JS operator on the two JsValues.
Sourcepub fn lt(&self, other: &JsValue) -> bool
pub fn lt(&self, other: &JsValue) -> bool
Applies the binary < JS operator on the two JsValues.
Sourcepub fn le(&self, other: &JsValue) -> bool
pub fn le(&self, other: &JsValue) -> bool
Applies the binary <= JS operator on the two JsValues.
Sourcepub fn ge(&self, other: &JsValue) -> bool
pub fn ge(&self, other: &JsValue) -> bool
Applies the binary >= JS operator on the two JsValues.
Sourcepub fn gt(&self, other: &JsValue) -> bool
pub fn gt(&self, other: &JsValue) -> bool
Applies the binary > JS operator on the two JsValues.
Sourcepub fn unchecked_into_f64(&self) -> f64
pub fn unchecked_into_f64(&self) -> f64
Applies the unary + JS operator on a JsValue. Can throw.
Trait Implementations§
Source§impl AsRef<Object> for ArrayBuffer
impl AsRef<Object> for ArrayBuffer
Source§impl AsRef<Object> for ArrayBufferOptions
impl AsRef<Object> for ArrayBufferOptions
Source§impl<T> AsRef<Object> for AsyncGenerator<T>
impl<T> AsRef<Object> for AsyncGenerator<T>
Source§impl AsRef<Object> for BigInt64Array
impl AsRef<Object> for BigInt64Array
Source§impl AsRef<Object> for BigUint64Array
impl AsRef<Object> for BigUint64Array
Source§impl AsRef<Object> for CollatorOptions
impl AsRef<Object> for CollatorOptions
Source§impl AsRef<Object> for DateTimeFormat
impl AsRef<Object> for DateTimeFormat
Source§impl AsRef<Object> for DateTimeFormatOptions
impl AsRef<Object> for DateTimeFormatOptions
Source§impl AsRef<Object> for DateTimeFormatPart
impl AsRef<Object> for DateTimeFormatPart
Source§impl AsRef<Object> for DisplayNames
impl AsRef<Object> for DisplayNames
Source§impl AsRef<Object> for DisplayNamesOptions
impl AsRef<Object> for DisplayNamesOptions
Source§impl AsRef<Object> for DurationFormat
impl AsRef<Object> for DurationFormat
Source§impl AsRef<Object> for DurationFormatOptions
impl AsRef<Object> for DurationFormatOptions
Source§impl AsRef<Object> for DurationFormatPart
impl AsRef<Object> for DurationFormatPart
Source§impl AsRef<Object> for Float32Array
impl AsRef<Object> for Float32Array
Source§impl AsRef<Object> for Float64Array
impl AsRef<Object> for Float64Array
Source§impl AsRef<Object> for Int16Array
impl AsRef<Object> for Int16Array
Source§impl AsRef<Object> for Int32Array
impl AsRef<Object> for Int32Array
Source§impl<T> AsRef<Object> for IteratorNext<T>
impl<T> AsRef<Object> for IteratorNext<T>
Source§impl AsRef<Object> for ListFormat
impl AsRef<Object> for ListFormat
Source§impl AsRef<Object> for ListFormatOptions
impl AsRef<Object> for ListFormatOptions
Source§impl AsRef<Object> for ListFormatPart
impl AsRef<Object> for ListFormatPart
Source§impl AsRef<Object> for LocaleMatcherOptions
impl AsRef<Object> for LocaleMatcherOptions
Source§impl AsRef<Object> for NumberFormat
impl AsRef<Object> for NumberFormat
Source§impl AsRef<Object> for NumberFormatOptions
impl AsRef<Object> for NumberFormatOptions
Source§impl AsRef<Object> for NumberFormatPart
impl AsRef<Object> for NumberFormatPart
Source§impl AsRef<Object> for PluralRules
impl AsRef<Object> for PluralRules
Source§impl AsRef<Object> for PluralRulesOptions
impl AsRef<Object> for PluralRulesOptions
Source§impl<T> AsRef<Object> for PromiseState<T>
impl<T> AsRef<Object> for PromiseState<T>
Source§impl<T> AsRef<Object> for PropertyDescriptor<T>
impl<T> AsRef<Object> for PropertyDescriptor<T>
Source§impl AsRef<Object> for RangeError
impl AsRef<Object> for RangeError
Source§impl AsRef<Object> for ReferenceError
impl AsRef<Object> for ReferenceError
Source§impl AsRef<Object> for RegExpMatchArray
impl AsRef<Object> for RegExpMatchArray
Source§impl AsRef<Object> for RelativeTimeFormat
impl AsRef<Object> for RelativeTimeFormat
Source§impl AsRef<Object> for RelativeTimeFormatOptions
impl AsRef<Object> for RelativeTimeFormatOptions
Source§impl AsRef<Object> for RelativeTimeFormatPart
impl AsRef<Object> for RelativeTimeFormatPart
Source§impl AsRef<Object> for SegmentData
impl AsRef<Object> for SegmentData
Source§impl AsRef<Object> for SegmenterOptions
impl AsRef<Object> for SegmenterOptions
Source§impl AsRef<Object> for SyntaxError
impl AsRef<Object> for SyntaxError
Source§impl AsRef<Object> for Uint16Array
impl AsRef<Object> for Uint16Array
Source§impl AsRef<Object> for Uint32Array
impl AsRef<Object> for Uint32Array
Source§impl AsRef<Object> for Uint8Array
impl AsRef<Object> for Uint8Array
Source§impl AsRef<Object> for Uint8ClampedArray
impl AsRef<Object> for Uint8ClampedArray
Source§impl<T> ErasableGeneric for Object<T>
impl<T> ErasableGeneric for Object<T>
Source§impl From<ArrayBuffer> for Object
impl From<ArrayBuffer> for Object
Source§fn from(obj: ArrayBuffer) -> Object
fn from(obj: ArrayBuffer) -> Object
Source§impl From<ArrayBufferOptions> for Object
impl From<ArrayBufferOptions> for Object
Source§fn from(obj: ArrayBufferOptions) -> Object
fn from(obj: ArrayBufferOptions) -> Object
Source§impl<T: JsTuple> From<ArrayTuple<T>> for Object
impl<T: JsTuple> From<ArrayTuple<T>> for Object
Source§fn from(obj: ArrayTuple<T>) -> Object
fn from(obj: ArrayTuple<T>) -> Object
Source§impl<T> From<AsyncGenerator<T>> for Object
impl<T> From<AsyncGenerator<T>> for Object
Source§fn from(obj: AsyncGenerator<T>) -> Object
fn from(obj: AsyncGenerator<T>) -> Object
Source§impl From<BigInt64Array> for Object
impl From<BigInt64Array> for Object
Source§fn from(obj: BigInt64Array) -> Object
fn from(obj: BigInt64Array) -> Object
Source§impl From<BigUint64Array> for Object
impl From<BigUint64Array> for Object
Source§fn from(obj: BigUint64Array) -> Object
fn from(obj: BigUint64Array) -> Object
Source§impl From<CollatorOptions> for Object
impl From<CollatorOptions> for Object
Source§fn from(obj: CollatorOptions) -> Object
fn from(obj: CollatorOptions) -> Object
Source§impl From<DateTimeFormat> for Object
impl From<DateTimeFormat> for Object
Source§fn from(obj: DateTimeFormat) -> Object
fn from(obj: DateTimeFormat) -> Object
Source§impl From<DateTimeFormatOptions> for Object
impl From<DateTimeFormatOptions> for Object
Source§fn from(obj: DateTimeFormatOptions) -> Object
fn from(obj: DateTimeFormatOptions) -> Object
Source§impl From<DateTimeFormatPart> for Object
impl From<DateTimeFormatPart> for Object
Source§fn from(obj: DateTimeFormatPart) -> Object
fn from(obj: DateTimeFormatPart) -> Object
Source§impl From<DisplayNames> for Object
impl From<DisplayNames> for Object
Source§fn from(obj: DisplayNames) -> Object
fn from(obj: DisplayNames) -> Object
Source§impl From<DisplayNamesOptions> for Object
impl From<DisplayNamesOptions> for Object
Source§fn from(obj: DisplayNamesOptions) -> Object
fn from(obj: DisplayNamesOptions) -> Object
Source§impl From<DurationFormat> for Object
impl From<DurationFormat> for Object
Source§fn from(obj: DurationFormat) -> Object
fn from(obj: DurationFormat) -> Object
Source§impl From<DurationFormatOptions> for Object
impl From<DurationFormatOptions> for Object
Source§fn from(obj: DurationFormatOptions) -> Object
fn from(obj: DurationFormatOptions) -> Object
Source§impl From<DurationFormatPart> for Object
impl From<DurationFormatPart> for Object
Source§fn from(obj: DurationFormatPart) -> Object
fn from(obj: DurationFormatPart) -> Object
Source§impl From<Float32Array> for Object
impl From<Float32Array> for Object
Source§fn from(obj: Float32Array) -> Object
fn from(obj: Float32Array) -> Object
Source§impl From<Float64Array> for Object
impl From<Float64Array> for Object
Source§fn from(obj: Float64Array) -> Object
fn from(obj: Float64Array) -> Object
Source§impl From<Int16Array> for Object
impl From<Int16Array> for Object
Source§fn from(obj: Int16Array) -> Object
fn from(obj: Int16Array) -> Object
Source§impl From<Int32Array> for Object
impl From<Int32Array> for Object
Source§fn from(obj: Int32Array) -> Object
fn from(obj: Int32Array) -> Object
Source§impl<T> From<IteratorNext<T>> for Object
impl<T> From<IteratorNext<T>> for Object
Source§fn from(obj: IteratorNext<T>) -> Object
fn from(obj: IteratorNext<T>) -> Object
Source§impl From<ListFormat> for Object
impl From<ListFormat> for Object
Source§fn from(obj: ListFormat) -> Object
fn from(obj: ListFormat) -> Object
Source§impl From<ListFormatOptions> for Object
impl From<ListFormatOptions> for Object
Source§fn from(obj: ListFormatOptions) -> Object
fn from(obj: ListFormatOptions) -> Object
Source§impl From<ListFormatPart> for Object
impl From<ListFormatPart> for Object
Source§fn from(obj: ListFormatPart) -> Object
fn from(obj: ListFormatPart) -> Object
Source§impl From<LocaleMatcherOptions> for Object
impl From<LocaleMatcherOptions> for Object
Source§fn from(obj: LocaleMatcherOptions) -> Object
fn from(obj: LocaleMatcherOptions) -> Object
Source§impl From<NumberFormat> for Object
impl From<NumberFormat> for Object
Source§fn from(obj: NumberFormat) -> Object
fn from(obj: NumberFormat) -> Object
Source§impl From<NumberFormatOptions> for Object
impl From<NumberFormatOptions> for Object
Source§fn from(obj: NumberFormatOptions) -> Object
fn from(obj: NumberFormatOptions) -> Object
Source§impl From<NumberFormatPart> for Object
impl From<NumberFormatPart> for Object
Source§fn from(obj: NumberFormatPart) -> Object
fn from(obj: NumberFormatPart) -> Object
Source§impl From<PluralRules> for Object
impl From<PluralRules> for Object
Source§fn from(obj: PluralRules) -> Object
fn from(obj: PluralRules) -> Object
Source§impl From<PluralRulesOptions> for Object
impl From<PluralRulesOptions> for Object
Source§fn from(obj: PluralRulesOptions) -> Object
fn from(obj: PluralRulesOptions) -> Object
Source§impl<T> From<PromiseState<T>> for Object
impl<T> From<PromiseState<T>> for Object
Source§fn from(obj: PromiseState<T>) -> Object
fn from(obj: PromiseState<T>) -> Object
Source§impl<T> From<PropertyDescriptor<T>> for Object
impl<T> From<PropertyDescriptor<T>> for Object
Source§fn from(obj: PropertyDescriptor<T>) -> Object
fn from(obj: PropertyDescriptor<T>) -> Object
Source§impl From<RangeError> for Object
impl From<RangeError> for Object
Source§fn from(obj: RangeError) -> Object
fn from(obj: RangeError) -> Object
Source§impl From<ReferenceError> for Object
impl From<ReferenceError> for Object
Source§fn from(obj: ReferenceError) -> Object
fn from(obj: ReferenceError) -> Object
Source§impl From<RegExpMatchArray> for Object
impl From<RegExpMatchArray> for Object
Source§fn from(obj: RegExpMatchArray) -> Object
fn from(obj: RegExpMatchArray) -> Object
Source§impl From<RelativeTimeFormat> for Object
impl From<RelativeTimeFormat> for Object
Source§fn from(obj: RelativeTimeFormat) -> Object
fn from(obj: RelativeTimeFormat) -> Object
Source§impl From<RelativeTimeFormatOptions> for Object
impl From<RelativeTimeFormatOptions> for Object
Source§fn from(obj: RelativeTimeFormatOptions) -> Object
fn from(obj: RelativeTimeFormatOptions) -> Object
Source§impl From<RelativeTimeFormatPart> for Object
impl From<RelativeTimeFormatPart> for Object
Source§fn from(obj: RelativeTimeFormatPart) -> Object
fn from(obj: RelativeTimeFormatPart) -> Object
Source§impl From<SegmentData> for Object
impl From<SegmentData> for Object
Source§fn from(obj: SegmentData) -> Object
fn from(obj: SegmentData) -> Object
Source§impl From<SegmenterOptions> for Object
impl From<SegmenterOptions> for Object
Source§fn from(obj: SegmenterOptions) -> Object
fn from(obj: SegmenterOptions) -> Object
Source§fn from(obj: SharedArrayBuffer) -> Object
fn from(obj: SharedArrayBuffer) -> Object
Source§impl From<SyntaxError> for Object
impl From<SyntaxError> for Object
Source§fn from(obj: SyntaxError) -> Object
fn from(obj: SyntaxError) -> Object
Source§impl From<Uint16Array> for Object
impl From<Uint16Array> for Object
Source§fn from(obj: Uint16Array) -> Object
fn from(obj: Uint16Array) -> Object
Source§impl From<Uint32Array> for Object
impl From<Uint32Array> for Object
Source§fn from(obj: Uint32Array) -> Object
fn from(obj: Uint32Array) -> Object
Source§impl From<Uint8Array> for Object
impl From<Uint8Array> for Object
Source§fn from(obj: Uint8Array) -> Object
fn from(obj: Uint8Array) -> Object
Source§impl From<Uint8ClampedArray> for Object
impl From<Uint8ClampedArray> for Object
Source§fn from(obj: Uint8ClampedArray) -> Object
fn from(obj: Uint8ClampedArray) -> Object
Source§impl<T> FromWasmAbi for Object<T>
impl<T> FromWasmAbi for Object<T>
Source§impl<'a, T> IntoWasmAbi for &'a Object<T>
impl<'a, T> IntoWasmAbi for &'a Object<T>
Source§impl<T> IntoWasmAbi for Object<T>
impl<T> IntoWasmAbi for Object<T>
Source§impl<T> JsCast for Object<T>
impl<T> JsCast for Object<T>
Source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof check to see whether the JsValue
provided is an instance of this type. Read moreSource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
Source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
Source§fn has_type<T>(&self) -> boolwhere
T: JsCast,
fn has_type<T>(&self) -> boolwhere
T: JsCast,
T. Read moreSource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T. Read moreSource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T. Read moreSource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Source§fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
Source§impl<T> LongRefFromWasmAbi for Object<T>
impl<T> LongRefFromWasmAbi for Object<T>
Source§impl<T> OptionFromWasmAbi for Object<T>
impl<T> OptionFromWasmAbi for Object<T>
Source§impl<'a, T> OptionIntoWasmAbi for &'a Object<T>
impl<'a, T> OptionIntoWasmAbi for &'a Object<T>
Source§impl<T> OptionIntoWasmAbi for Object<T>
impl<T> OptionIntoWasmAbi for Object<T>
Source§impl<T> Promising for Object<T>
impl<T> Promising for Object<T>
Source§type Resolution = Object<T>
type Resolution = Object<T>
Source§impl<T> RefFromWasmAbi for Object<T>
impl<T> RefFromWasmAbi for Object<T>
Source§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self are recovered from.Source§type Anchor = ManuallyDrop<Object<T>>
type Anchor = ManuallyDrop<Object<T>>
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.impl Eq for Object
impl<T> UpcastFrom<Array<T>> for Object
impl UpcastFrom<ArrayBuffer> for Object
impl UpcastFrom<ArrayBufferOptions> for Object
impl<T> UpcastFrom<AsyncGenerator<T>> for Object
impl<T> UpcastFrom<AsyncIterator<T>> for Object
impl UpcastFrom<BigInt> for Object
impl UpcastFrom<BigInt64Array> for Object
impl UpcastFrom<BigUint64Array> for Object
impl UpcastFrom<Boolean> for Object
impl UpcastFrom<Collator> for Object
impl UpcastFrom<CollatorOptions> for Object
impl UpcastFrom<DataView> for Object
impl UpcastFrom<Date> for Object
impl UpcastFrom<DateTimeFormat> for Object
impl UpcastFrom<DateTimeFormatOptions> for Object
impl UpcastFrom<DateTimeFormatPart> for Object
impl UpcastFrom<DisplayNames> for Object
impl UpcastFrom<DisplayNamesOptions> for Object
impl UpcastFrom<Duration> for Object
impl UpcastFrom<DurationFormat> for Object
impl UpcastFrom<DurationFormatOptions> for Object
impl UpcastFrom<DurationFormatPart> for Object
impl UpcastFrom<Error> for Object
impl UpcastFrom<EvalError> for Object
impl UpcastFrom<Exception> for Object
impl UpcastFrom<Float32Array> for Object
impl UpcastFrom<Float64Array> for Object
impl<T: JsFunction> UpcastFrom<Function<T>> for Object
impl<T> UpcastFrom<Generator<T>> for Object
impl UpcastFrom<Global> for Object
impl UpcastFrom<Instance> for Object
impl UpcastFrom<Int16Array> for Object
impl UpcastFrom<Int32Array> for Object
impl UpcastFrom<Int8Array> for Object
impl<T> UpcastFrom<Iterator<T>> for Object
impl<T> UpcastFrom<IteratorNext<T>> for Object
impl UpcastFrom<JsString> for Object
impl UpcastFrom<ListFormat> for Object
impl UpcastFrom<ListFormatOptions> for Object
impl UpcastFrom<ListFormatPart> for Object
impl UpcastFrom<Locale> for Object
impl UpcastFrom<LocaleMatcherOptions> for Object
impl<K, V> UpcastFrom<Map<K, V>> for Object
impl UpcastFrom<Memory> for Object
impl UpcastFrom<Module> for Object
impl UpcastFrom<Number> for Object
impl UpcastFrom<NumberFormat> for Object
impl UpcastFrom<NumberFormatOptions> for Object
impl UpcastFrom<NumberFormatPart> for Object
impl<T, __UpcastTarget0> UpcastFrom<Object<T>> for JsOption<Object<__UpcastTarget0>>where
__UpcastTarget0: UpcastFrom<T>,
impl<T> UpcastFrom<Object<T>> for JsValue
impl<T, __UpcastTarget0> UpcastFrom<Object<T>> for Object<__UpcastTarget0>where
__UpcastTarget0: UpcastFrom<T>,
impl UpcastFrom<PluralRules> for Object
impl UpcastFrom<PluralRulesOptions> for Object
impl<T> UpcastFrom<Promise<T>> for Object
impl<T> UpcastFrom<PromiseState<T>> for Object
impl<T> UpcastFrom<PropertyDescriptor<T>> for Object
impl UpcastFrom<RangeError> for Object
impl UpcastFrom<ReferenceError> for Object
impl UpcastFrom<RegExp> for Object
impl UpcastFrom<RegExpMatchArray> for Object
impl UpcastFrom<RelativeTimeFormat> for Object
impl UpcastFrom<RelativeTimeFormatOptions> for Object
impl UpcastFrom<RelativeTimeFormatPart> for Object
impl UpcastFrom<SegmentData> for Object
impl UpcastFrom<Segmenter> for Object
impl UpcastFrom<SegmenterOptions> for Object
impl UpcastFrom<Segments> for Object
impl<T> UpcastFrom<Set<T>> for Object
impl UpcastFrom<SyntaxError> for Object
impl UpcastFrom<Table> for Object
impl UpcastFrom<Tag> for Object
impl UpcastFrom<TextInfo> for Object
impl UpcastFrom<TypeError> for Object
impl UpcastFrom<Uint16Array> for Object
impl UpcastFrom<Uint32Array> for Object
impl UpcastFrom<Uint8Array> for Object
impl UpcastFrom<Uint8ClampedArray> for Object
impl UpcastFrom<UriError> for Object
impl<K, V> UpcastFrom<WeakMap<K, V>> for Object
impl<T> UpcastFrom<WeakRef<T>> for Object
impl<T> UpcastFrom<WeakSet<T>> for Object
impl UpcastFrom<WeekInfo> for Object
Auto Trait Implementations§
impl<T> Freeze for Object<T>
impl<T> RefUnwindSafe for Object<T>where
T: RefUnwindSafe,
impl<T> Send for Object<T>where
T: Send,
impl<T> Sync for Object<T>where
T: Sync,
impl<T> Unpin for Object<T>where
T: Unpin,
impl<T> UnsafeUnpin for Object<T>
impl<T> UnwindSafe for Object<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.