Struct Object

#[repr(transparent)]
pub struct Object<T = JsValue> { /* private fields */ }

Implementations

impl Object

fn values<T>(object: &Object<T>) -> Array<T>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,
    Array<T>: ErasableGenericOwn<Array<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).

Note: Consider using Object::try_values to support errors.

MDN documentation

impl Object

fn try_from(val: &JsValue) -> Option<&Object>

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.

impl Object

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.

MDN documentation

impl Object

fn get_own_property_names<T>(obj: &Object<T>) -> Array
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,

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

fn has_own_symbol<T>(instance: &Object<T>, property: &Symbol) -> Result<bool, JsValue>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,

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

MDN documentation

impl Object

fn is_frozen<T>(object: &Object<T>) -> bool
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,

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

MDN documentation

impl Object

fn keys<T>(object: &Object<T>) -> Array
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,

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

fn new() -> Object

The Object constructor creates an object wrapper.

Note: Consider using Object::new_typed for typed object records.

MDN documentation

impl Object

fn prevent_extensions<T>(object: &Object<T>)
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,

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

fn entries_typed<T>(object: &Object<T>) -> Result<Array<ArrayTuple<(JsString, T)>>, JsValue>
where
    T: JsGeneric,
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,
    Array<ArrayTuple<(JsString, T)>>: ErasableGenericOwn<Array<ArrayTuple<(JsString, 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).

MDN documentation

impl Object

fn get_own_property_descriptor_symbol<T>(obj: &Object<T>, prop: &Symbol) -> Result<PropertyDescriptor<JsValue>, JsValue>
where
    Object<T>: ErasableGenericBorrow<Object<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.

MDN documentation

impl Object

fn get_own_property_symbols<T>(obj: &Object<T>) -> Array
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,

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

MDN documentation

impl Object

fn has_own<T>(instance: &Object<T>, property: &JsValue) -> bool
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,

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

MDN documentation

impl Object

fn is(value1: &JsValue, value_2: &JsValue) -> bool

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

MDN documentation

impl Object

fn is_sealed<T>(object: &Object<T>) -> bool
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,

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

MDN documentation

impl Object

fn try_values<T>(object: &Object<T>) -> Result<Array<T>, JsValue>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,
    Array<T>: ErasableGenericOwn<Array<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).

MDN documentation

impl Object

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.

MDN documentation

impl Object

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.

MDN documentation

impl Object

fn get_own_property_descriptor<T>(obj: &Object<T>, prop: &JsValue) -> JsValue
where
    Object<T>: ErasableGenericBorrow<Object<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.

MDN documentation

impl Object

fn get_own_property_descriptors<T>(obj: &Object<T>) -> JsValue
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,

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

MDN documentation

impl Object

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.

MDN documentation

impl Object

fn has_own_str<T>(instance: &Object<T>, property: &JsString) -> Result<bool, JsValue>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,

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

MDN documentation

impl Object

fn is_extensible<T>(object: &Object<T>) -> bool
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,

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

MDN documentation

impl<T> Object<T>

fn new_typed() -> Object<T>
where
    Object<T>: ErasableGenericOwn<Object<JsValue>>,

The Object constructor creates an object wrapper.

MDN documentation

impl<T> Object<T>

fn assign(target: &Object<T>, source: &Object<T>) -> Object<T>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>> + ErasableGenericOwn<Object<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.

MDN documentation

impl<T> Object<T>

fn seal(value: &Object<T>) -> Object<T>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>> + ErasableGenericOwn<Object<JsValue>>,

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<T> Object<T>

fn assign2(target: &Object<T>, source1: &Object<T>, source2: &Object<T>) -> Object<T>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>> + ErasableGenericOwn<Object<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.

MDN documentation

impl<T> Object<T>

fn set_prototype_of(object: &Object<T>, prototype: &Object) -> Object<T>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>> + ErasableGenericOwn<Object<JsValue>>,

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.

MDN documentation

impl<T> Object<T>

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.

MDN documentation

impl<T> Object<T>

fn constructor(&self) -> Function

The constructor property returns a reference to the Object constructor function that created the instance object.

MDN documentation

impl<T> Object<T>

fn value_of(&self) -> Object

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

MDN documentation

impl<T> Object<T>

fn define_property_str(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.

MDN documentation

impl<T> Object<T>

fn has_own_property(&self, property: &JsValue) -> bool

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<T> Object<T>

fn assign3(target: &Object<T>, source1: &Object<T>, source2: &Object<T>, source3: &Object<T>) -> Object<T>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>> + ErasableGenericOwn<Object<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.

MDN documentation

impl<T> Object<T>

fn to_string(&self) -> JsString

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

MDN documentation

impl<T> Object<T>

fn create(prototype: &Object<T>) -> Object<T>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>> + ErasableGenericOwn<Object<JsValue>>,

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

MDN documentation

impl<T> Object<T>

fn define_property(obj: &Object<T>, prop: &JsValue, descriptor: &Object) -> Object<T>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>> + ErasableGenericOwn<Object<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.

Note: Consider using Object::define_property_str to support typing and error handling.

MDN documentation

impl<T> Object<T>

fn define_property_symbol(obj: &Object<T>, prop: &Symbol, descriptor: &PropertyDescriptor<JsValue>) -> Result<Object<T>, JsValue>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>> + ErasableGenericOwn<Object<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.

MDN documentation

impl<T> Object<T>

fn property_is_enumerable(&self, property: &JsValue) -> bool

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

MDN documentation

impl<T> Object<T>

fn try_assign(target: &Object<T>, source: &Object<T>) -> Result<Object<T>, JsValue>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>> + ErasableGenericOwn<Object<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.

MDN documentation

impl<T> Object<T>

fn try_set_prototype_of(object: &Object<T>, prototype: &Object) -> Result<Object<T>, JsValue>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>> + ErasableGenericOwn<Object<JsValue>>,

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<T> Object<T>

fn assign_many(target: &Object<T>, sources: &[Object<T>]) -> Result<Object<T>, JsValue>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>> + ErasableGenericOwn<Object<JsValue>>,
    [Object<T>]: ErasableGenericBorrow<[Object<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.

MDN documentation

impl<T> Object<T>

fn to_js_string(&self) -> JsString

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

MDN documentation

impl<T> Object<T>

fn define_properties(obj: &Object<T>, props: &Object) -> Object<T>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>> + ErasableGenericOwn<Object<JsValue>>,

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.

MDN documentation

impl<T> Object<T>

fn freeze(value: &Object<T>) -> Object<T>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>> + ErasableGenericOwn<Object<JsValue>>,

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<T> Object<T>

fn is_prototype_of(&self, value: &JsValue) -> bool

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

MDN documentation

impl<T> Object<T> where T: JsGeneric,

fn from_entries_typed<I>(entries: &I) -> Result<Object<T>, JsValue>
where
    I: Iterable<Item = ArrayTuple<(JsString, T)>> + ErasableGenericBorrow<JsValue>,
    Object<T>: ErasableGenericOwn<Object<JsValue>>,

The Object.fromEntries() method transforms a list of key-value pairs into an object.

MDN documentation

Trait Implementations

impl Default for Object<JsValue>

fn default() -> Self

impl Eq for Object

impl From<AggregateError> for Object

fn from(obj: AggregateError) -> Object

impl From<ArrayBuffer> for Object

fn from(obj: ArrayBuffer) -> Object

impl From<ArrayBufferOptions> for Object

fn from(obj: ArrayBufferOptions) -> Object

impl From<BigInt> for Object

fn from(obj: BigInt) -> Object

impl From<BigInt64Array> for Object

fn from(obj: BigInt64Array) -> Object

impl From<BigUint64Array> for Object

fn from(obj: BigUint64Array) -> Object

impl From<Boolean> for Object

fn from(obj: Boolean) -> Object

impl From<Collator> for Object

fn from(obj: Collator) -> Object

impl From<CollatorOptions> for Object

fn from(obj: CollatorOptions) -> Object

impl From<DataView> for Object

fn from(obj: DataView) -> Object

impl From<Date> for Object

fn from(obj: Date) -> Object

impl From<DateTimeFormat> for Object

fn from(obj: DateTimeFormat) -> Object

impl From<DateTimeFormatOptions> for Object

fn from(obj: DateTimeFormatOptions) -> Object

impl From<DateTimeFormatPart> for Object

fn from(obj: DateTimeFormatPart) -> Object

impl From<DisplayNames> for Object

fn from(obj: DisplayNames) -> Object

impl From<DisplayNamesOptions> for Object

fn from(obj: DisplayNamesOptions) -> Object

impl From<Duration> for Object

fn from(obj: Duration) -> Object

impl From<DurationFormat> for Object

fn from(obj: DurationFormat) -> Object

impl From<DurationFormatOptions> for Object

fn from(obj: DurationFormatOptions) -> Object

impl From<DurationFormatPart> for Object

fn from(obj: DurationFormatPart) -> Object

impl From<Error> for Object

fn from(obj: Error) -> Object

impl From<ErrorOptions> for Object

fn from(obj: ErrorOptions) -> Object

impl From<EvalError> for Object

fn from(obj: EvalError) -> Object

impl From<Exception> for Object

fn from(obj: Exception) -> Object

impl From<FinalizationRegistry> for Object

fn from(obj: FinalizationRegistry) -> Object

impl From<Float16Array> for Object

fn from(obj: Float16Array) -> Object

impl From<Float32Array> for Object

fn from(obj: Float32Array) -> Object

impl From<Float64Array> for Object

fn from(obj: Float64Array) -> Object

impl From<Global> for Object

fn from(obj: Global) -> Object

impl From<Instance> for Object

fn from(obj: Instance) -> Object

impl From<Int16Array> for Object

fn from(obj: Int16Array) -> Object

impl From<Int32Array> for Object

fn from(obj: Int32Array) -> Object

impl From<Int8Array> for Object

fn from(obj: Int8Array) -> Object

impl From<JsString> for Object

fn from(obj: JsString) -> Object

impl From<JsValue> for Object

fn from(obj: JsValue) -> Self

impl From<ListFormat> for Object

fn from(obj: ListFormat) -> Object

impl From<ListFormatOptions> for Object

fn from(obj: ListFormatOptions) -> Object

impl From<ListFormatPart> for Object

fn from(obj: ListFormatPart) -> Object

impl From<Locale> for Object

fn from(obj: Locale) -> Object

impl From<LocaleMatcherOptions> for Object

fn from(obj: LocaleMatcherOptions) -> Object

impl From<Memory> for Object

fn from(obj: Memory) -> Object

impl From<Module> for Object

fn from(obj: Module) -> Object

impl From<Number> for Object

fn from(obj: Number) -> Object

impl From<NumberFormat> for Object

fn from(obj: NumberFormat) -> Object

impl From<NumberFormatOptions> for Object

fn from(obj: NumberFormatOptions) -> Object

impl From<NumberFormatPart> for Object

fn from(obj: NumberFormatPart) -> Object

impl From<PluralRules> for Object

fn from(obj: PluralRules) -> Object

impl From<PluralRulesOptions> for Object

fn from(obj: PluralRulesOptions) -> Object

impl From<RangeError> for Object

fn from(obj: RangeError) -> Object

impl From<ReferenceError> for Object

fn from(obj: ReferenceError) -> Object

impl From<RegExp> for Object

fn from(obj: RegExp) -> Object

impl From<RegExpMatchArray> for Object

fn from(obj: RegExpMatchArray) -> Object

impl From<RelativeTimeFormat> for Object

fn from(obj: RelativeTimeFormat) -> Object

impl From<RelativeTimeFormatOptions> for Object

fn from(obj: RelativeTimeFormatOptions) -> Object

impl From<RelativeTimeFormatPart> for Object

fn from(obj: RelativeTimeFormatPart) -> Object

impl From<SegmentData> for Object

fn from(obj: SegmentData) -> Object

impl From<Segmenter> for Object

fn from(obj: Segmenter) -> Object

impl From<SegmenterOptions> for Object

fn from(obj: SegmenterOptions) -> Object

impl From<Segments> for Object

fn from(obj: Segments) -> Object

impl From<SharedArrayBuffer> for Object

fn from(obj: SharedArrayBuffer) -> Object

impl From<Suspending> for Object

fn from(obj: Suspending) -> Object

impl From<SyntaxError> for Object

fn from(obj: SyntaxError) -> Object

impl From<Table> for Object

fn from(obj: Table) -> Object

impl From<Tag> for Object

fn from(obj: Tag) -> Object

impl From<TextInfo> for Object

fn from(obj: TextInfo) -> Object

impl From<TypeError> for Object

fn from(obj: TypeError) -> Object

impl From<Uint16Array> for Object

fn from(obj: Uint16Array) -> Object

impl From<Uint32Array> for Object

fn from(obj: Uint32Array) -> Object

impl From<Uint8Array> for Object

fn from(obj: Uint8Array) -> Object

impl From<Uint8ClampedArray> for Object

fn from(obj: Uint8ClampedArray) -> Object

impl From<UriError> for Object

fn from(obj: UriError) -> Object

impl From<WeekInfo> for Object

fn from(obj: WeekInfo) -> Object

impl PartialEq for Object

fn eq(&self, other: &Object) -> bool

impl UpcastFrom<AggregateError> for Object

impl UpcastFrom<ArrayBuffer> for Object

impl UpcastFrom<ArrayBufferOptions> 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<ErrorOptions> for Object

impl UpcastFrom<EvalError> for Object

impl UpcastFrom<Exception> for Object

impl UpcastFrom<FinalizationRegistry> for Object

impl UpcastFrom<Float16Array> for Object

impl UpcastFrom<Float32Array> for Object

impl UpcastFrom<Float64Array> 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 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 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 UpcastFrom<PluralRules> for Object

impl UpcastFrom<PluralRulesOptions> 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 UpcastFrom<SharedArrayBuffer> for Object

impl UpcastFrom<Suspending> 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 UpcastFrom<WeekInfo> for Object

impl<K, V> From<Map<K, V>> for Object

fn from(obj: Map<K, V>) -> Object

impl<K, V> From<WeakMap<K, V>> for Object

fn from(obj: WeakMap<K, V>) -> Object

impl<K, V> UpcastFrom<Map<K, V>> for Object

impl<K, V> UpcastFrom<WeakMap<K, V>> for Object

impl<T> AsRef<JsValue> for Object<T>

fn as_ref(&self) -> &JsValue

impl<T> AsRef<Object<T>> for Object<T>

fn as_ref(&self) -> &Object<T>

impl<T> Deref for Object<T>

type Target = JsValue;
fn deref(&self) -> &JsValue

impl<T> ErasableGeneric for Object<T>

type Repr = JsValue;

impl<T> From<Array<T>> for Object

fn from(obj: Array<T>) -> Object

impl<T> From<AsyncGenerator<T>> for Object

fn from(obj: AsyncGenerator<T>) -> Object

impl<T> From<Generator<T>> for Object

fn from(obj: Generator<T>) -> Object

impl<T> From<IteratorNext<T>> for Object

fn from(obj: IteratorNext<T>) -> Object

impl<T> From<Promise<T>> for Object

fn from(obj: Promise<T>) -> Object

impl<T> From<PromiseState<T>> for Object

fn from(obj: PromiseState<T>) -> Object

impl<T> From<PropertyDescriptor<T>> for Object

fn from(obj: PropertyDescriptor<T>) -> Object

impl<T> From<Set<T>> for Object

fn from(obj: Set<T>) -> Object

impl<T> From<WeakRef<T>> for Object

fn from(obj: WeakRef<T>) -> Object

impl<T> From<WeakSet<T>> for Object

fn from(obj: WeakSet<T>) -> Object

impl<T> FromWasmAbi for Object<T>

type Abi = <JsValue as FromWasmAbi>::Abi;
unsafe fn from_abi(js: Self::Abi) -> Self

impl<T> IntoJsGeneric for Object<T> where Object<T>: JsGeneric,

type JsCanon = Object<T>;
fn to_js(self) -> Object<T>

impl<T> IntoWasmAbi for Object<T>

type Abi = <JsValue as IntoWasmAbi>::Abi;
fn into_abi(self) -> Self::Abi

impl<T> JsCast for Object<T>

fn instanceof(val: &JsValue) -> bool
fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self

impl<T> LongRefFromWasmAbi for Object<T>

type Abi = <JsValue as LongRefFromWasmAbi>::Abi;
type Anchor = Object<T>;
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

impl<T> OptionFromWasmAbi for Object<T>

fn is_none(abi: &Self::Abi) -> bool

impl<T> OptionIntoWasmAbi for Object<T>

fn none() -> Self::Abi

impl<T> Promising for Object<T>

type Resolution = Object<T>;

impl<T> RefFromWasmAbi for Object<T>

type Abi = <JsValue as RefFromWasmAbi>::Abi;
type Anchor = ManuallyDrop<Object<T>>;
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

impl<T> UpcastFrom<Array<T>> for Object

impl<T> UpcastFrom<AsyncGenerator<T>> for Object

impl<T> UpcastFrom<AsyncIterator<T>> for Object

impl<T> UpcastFrom<Generator<T>> for Object

impl<T> UpcastFrom<Iterator<T>> for Object

impl<T> UpcastFrom<IteratorNext<T>> for Object

impl<T> UpcastFrom<Promise<T>> for Object

impl<T> UpcastFrom<PromiseState<T>> for Object

impl<T> UpcastFrom<PropertyDescriptor<T>> for Object

impl<T> UpcastFrom<Set<T>> for Object

impl<T> UpcastFrom<WeakRef<T>> for Object

impl<T> UpcastFrom<WeakSet<T>> for Object

impl<T> WasmDescribe for Object<T>

fn describe()

impl<T, __UpcastTarget0> UpcastFrom<Object<T>> for Object<__UpcastTarget0> where __UpcastTarget0: UpcastFrom<T>,

impl<T: Clone> Clone for Object<T>

fn clone(&self) -> Self

impl<T: Debug> Debug for Object<T>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<T: JsFunction> From<Function<T>> for Object

fn from(obj: Function<T>) -> Object

impl<T: JsFunction> UpcastFrom<Function<T>> for Object

impl<T: JsTuple> From<ArrayTuple<T>> for Object

fn from(obj: ArrayTuple<T>) -> Object

Auto Trait Implementations

impl<T> Freeze for Object<T> where PhantomData<(T,)>: Freeze,

impl<T> RefUnwindSafe for Object<T> where PhantomData<(T,)>: RefUnwindSafe,

impl<T> Send for Object<T> where PhantomData<(T,)>: Send,

impl<T> Sync for Object<T> where PhantomData<(T,)>: Sync,

impl<T> Unpin for Object<T> where PhantomData<(T,)>: Unpin,

impl<T> UnsafeUnpin for Object<T> where PhantomData<(T,)>: UnsafeUnpin,

impl<T> UnwindSafe for Object<T> where PhantomData<(T,)>: UnwindSafe,

Blanket Implementations

impl<P, T> Receiver for Object<T> where P: Deref<Target = T> + ?Sized, T: ?Sized,

impl<S, T> Upcast<T> for Object<T> where T: UpcastFrom<S> + ?Sized, S: ?Sized,

impl<T> Any for Object<T> where T: 'static + ?Sized,

impl<T> Borrow<T> for Object<T> where T: ?Sized,

impl<T> BorrowMut<T> for Object<T> where T: ?Sized,

impl<T> CloneToUninit for Object<T> where T: Clone,

impl<T> From<T> for Object<T>

impl<T> JsGeneric for Object<T> where T: ErasableGeneric<Repr = JsValue> + UpcastFrom<T> + Upcast<JsValue> + JsCast + 'static,

impl<T> ReturnWasmAbi for Object<T> where T: IntoWasmAbi,

impl<T> ToOwned for Object<T> where T: Clone,

impl<T> TryFromJsValue for Object<T> where T: JsCast,

impl<T> VectorFromWasmAbi for Object<T> where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorIntoWasmAbi for Object<T> where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorRefIntoWasmAbi for Object<T> where &'a T: for<'a> Into<JsValue>,

impl<T, U> Into<U> for Object<T> where U: From<T>,

impl<T, U> TryFrom<U> for Object<T> where U: Into<T>,

impl<T, U> TryInto<U> for Object<T> where U: TryFrom<T>,