#[repr(transparent)]pub struct Object<T = JsValue> {
pub obj: JsValue,
pub generics: PhantomData<fn() -> (T,)>,
}Fields§
§obj: JsValue§generics: PhantomData<fn() -> (T,)>Implementations§
Source§impl<T> Object<T>
impl<T> Object<T>
Sourcepub fn assign(target: &Object<T>, source: &Object<T>) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen, '__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn assign(target: &Object<T>, source: &Object<T>) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen, '__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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<T> Object<T>
impl<T> Object<T>
Sourcepub fn try_assign(
target: &Object<T>,
source: &Object<T>,
) -> Result<Object<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen, '__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Result<Object<T>, JsValue>: ErasableGenericOwn<Result<Object<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
pub fn try_assign(
target: &Object<T>,
source: &Object<T>,
) -> Result<Object<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen, '__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Result<Object<T>, JsValue>: ErasableGenericOwn<Result<Object<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
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<T> Object<T>
impl<T> Object<T>
Sourcepub fn assign2(
target: &Object<T>,
source1: &Object<T>,
source2: &Object<T>,
) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen, '__wry_bindgen, '__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
👎Deprecated: use assign_many for arbitrary assign arguments instead
pub fn assign2(
target: &Object<T>,
source1: &Object<T>,
source2: &Object<T>,
) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen, '__wry_bindgen, '__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
use assign_many for arbitrary assign arguments instead
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.
Source§impl<T> Object<T>
impl<T> Object<T>
Sourcepub fn assign3(
target: &Object<T>,
source1: &Object<T>,
source2: &Object<T>,
source3: &Object<T>,
) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen, '__wry_bindgen, '__wry_bindgen, '__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
👎Deprecated: use assign_many for arbitrary assign arguments instead
pub fn assign3(
target: &Object<T>,
source1: &Object<T>,
source2: &Object<T>,
source3: &Object<T>,
) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen, '__wry_bindgen, '__wry_bindgen, '__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
use assign_many for arbitrary assign arguments instead
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.
Source§impl<T> Object<T>
impl<T> Object<T>
Sourcepub fn assign_many(
target: &Object<T>,
sources: &[Object<T>],
) -> Result<Object<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + JsGeneric,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
[Object<T>]: ErasableGenericBorrow<[Object<JsValue>]>,
Result<Object<T>, JsValue>: ErasableGenericOwn<Result<Object<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
pub fn assign_many(
target: &Object<T>,
sources: &[Object<T>],
) -> Result<Object<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + JsGeneric,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
[Object<T>]: ErasableGenericBorrow<[Object<JsValue>]>,
Result<Object<T>, JsValue>: ErasableGenericOwn<Result<Object<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
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.
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<T> Object<T>
impl<T> Object<T>
Sourcepub fn create(prototype: &Object<T>) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn create(prototype: &Object<T>) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
The Object.create() method creates a new object, using an existing
object to provide the newly created object’s prototype.
Source§impl<T> Object<T>
impl<T> Object<T>
Sourcepub fn define_property(
obj: &Object<T>,
prop: &JsValue,
descriptor: &Object,
) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn define_property(
obj: &Object<T>,
prop: &JsValue,
descriptor: &Object,
) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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<T> Object<T>
impl<T> Object<T>
Sourcepub fn define_property_str(
obj: &Object<T>,
prop: &JsString,
descriptor: &PropertyDescriptor<T>,
) -> Result<Object<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
PropertyDescriptor<T>: ErasableGenericBorrow<PropertyDescriptor<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen PropertyDescriptor<T>: BinaryEncode,
Result<Object<T>, JsValue>: ErasableGenericOwn<Result<Object<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
pub fn define_property_str(
obj: &Object<T>,
prop: &JsString,
descriptor: &PropertyDescriptor<T>,
) -> Result<Object<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
PropertyDescriptor<T>: ErasableGenericBorrow<PropertyDescriptor<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen PropertyDescriptor<T>: BinaryEncode,
Result<Object<T>, JsValue>: ErasableGenericOwn<Result<Object<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
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<T> Object<T>
impl<T> Object<T>
Sourcepub fn define_property_symbol(
obj: &Object<T>,
prop: &Symbol,
descriptor: &PropertyDescriptor<JsValue>,
) -> Result<Object<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Result<Object<T>, JsValue>: ErasableGenericOwn<Result<Object<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
pub fn define_property_symbol(
obj: &Object<T>,
prop: &Symbol,
descriptor: &PropertyDescriptor<JsValue>,
) -> Result<Object<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Result<Object<T>, JsValue>: ErasableGenericOwn<Result<Object<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
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<T> Object<T>
impl<T> Object<T>
Sourcepub fn define_properties(obj: &Object<T>, props: &Object) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn define_properties(obj: &Object<T>, props: &Object) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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: JsGeneric>(
object: &Object<T>,
) -> Result<Array<ArrayTuple<(JsString, T)>>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Result<Array<ArrayTuple<(JsString, T)>>, JsValue>: ErasableGenericOwn<Result<Array<ArrayTuple<(JsString, JsValue)>>, JsValue>> + EncodeTypeDef + BatchableResult,
pub fn entries_typed<T: JsGeneric>(
object: &Object<T>,
) -> Result<Array<ArrayTuple<(JsString, T)>>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Result<Array<ArrayTuple<(JsString, T)>>, JsValue>: ErasableGenericOwn<Result<Array<ArrayTuple<(JsString, JsValue)>>, JsValue>> + EncodeTypeDef + BatchableResult,
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<T> Object<T>
impl<T> Object<T>
Sourcepub fn freeze(value: &Object<T>) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn freeze(value: &Object<T>) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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<T: JsGeneric> Object<T>
impl<T: JsGeneric> Object<T>
Sourcepub fn from_entries_typed<I>(entries: &I) -> Result<Object<T>, JsValue>where
I: ErasableGenericBorrow<JsValue> + EncodeTypeDef + Iterable<Item = ArrayTuple<(JsString, T)>>,
for<'__wry_bindgen> &'__wry_bindgen I: BinaryEncode,
Result<Object<T>, JsValue>: ErasableGenericOwn<Result<Object<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
pub fn from_entries_typed<I>(entries: &I) -> Result<Object<T>, JsValue>where
I: ErasableGenericBorrow<JsValue> + EncodeTypeDef + Iterable<Item = ArrayTuple<(JsString, T)>>,
for<'__wry_bindgen> &'__wry_bindgen I: BinaryEncode,
Result<Object<T>, JsValue>: ErasableGenericOwn<Result<Object<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
The Object.fromEntries() method transforms a list of key-value pairs
into an object.
Source§impl Object
impl Object
Sourcepub fn get_own_property_descriptor<T>(
obj: &Object<T>,
prop: &JsValue,
) -> JsValuewhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn get_own_property_descriptor<T>(
obj: &Object<T>,
prop: &JsValue,
) -> JsValuewhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Result<PropertyDescriptor<T>, JsValue>: ErasableGenericOwn<Result<PropertyDescriptor<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
pub fn get_own_property_descriptor_str<T>(
obj: &Object<T>,
prop: &JsString,
) -> Result<PropertyDescriptor<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Result<PropertyDescriptor<T>, JsValue>: ErasableGenericOwn<Result<PropertyDescriptor<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
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>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn get_own_property_descriptor_symbol<T>(
obj: &Object<T>,
prop: &Symbol,
) -> Result<PropertyDescriptor<JsValue>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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>) -> JsValuewhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn get_own_property_descriptors<T>(obj: &Object<T>) -> JsValuewhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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>) -> Arraywhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn get_own_property_names<T>(obj: &Object<T>) -> Arraywhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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>) -> Arraywhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn get_own_property_symbols<T>(obj: &Object<T>) -> Arraywhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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
Use 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
Sourcepub fn has_own<T>(instance: &Object<T>, property: &JsValue) -> boolwhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn has_own<T>(instance: &Object<T>, property: &JsValue) -> boolwhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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).
Source§impl Object
impl Object
Sourcepub fn has_own_str<T>(
instance: &Object<T>,
property: &JsString,
) -> Result<bool, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn has_own_str<T>(
instance: &Object<T>,
property: &JsString,
) -> Result<bool, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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).
Source§impl Object
impl Object
Sourcepub fn has_own_symbol<T>(
instance: &Object<T>,
property: &Symbol,
) -> Result<bool, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn has_own_symbol<T>(
instance: &Object<T>,
property: &Symbol,
) -> Result<bool, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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).
Source§impl Object
impl Object
Sourcepub fn is_extensible<T>(object: &Object<T>) -> boolwhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn is_extensible<T>(object: &Object<T>) -> boolwhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
The Object.isExtensible() method determines if an object is extensible
(whether it can have new properties added to it).
Source§impl Object
impl Object
Sourcepub fn is_frozen<T>(object: &Object<T>) -> boolwhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn is_frozen<T>(object: &Object<T>) -> boolwhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
The Object.isFrozen() determines if an object is frozen.
Source§impl Object
impl Object
Sourcepub fn is_sealed<T>(object: &Object<T>) -> boolwhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn is_sealed<T>(object: &Object<T>) -> boolwhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
The Object.isSealed() method determines if an object is sealed.
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 keys<T>(object: &Object<T>) -> Arraywhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn keys<T>(object: &Object<T>) -> Arraywhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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.
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<T> Object<T>
impl<T> Object<T>
Source§impl Object
impl Object
Sourcepub fn prevent_extensions<T>(object: &Object<T>)where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn prevent_extensions<T>(object: &Object<T>)where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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<T> Object<T>
impl<T> Object<T>
Sourcepub fn seal(value: &Object<T>) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn seal(value: &Object<T>) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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.
Source§impl<T> Object<T>
impl<T> Object<T>
Sourcepub fn set_prototype_of(object: &Object<T>, prototype: &Object) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
pub fn set_prototype_of(object: &Object<T>, prototype: &Object) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
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<T> Object<T>
impl<T> Object<T>
Sourcepub fn try_set_prototype_of(
object: &Object<T>,
prototype: &Object,
) -> Result<Object<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Result<Object<T>, JsValue>: ErasableGenericOwn<Result<Object<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
pub fn try_set_prototype_of(
object: &Object<T>,
prototype: &Object,
) -> Result<Object<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Result<Object<T>, JsValue>: ErasableGenericOwn<Result<Object<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
The Object.setPrototypeOf() method sets the prototype (i.e., the
internal [[Prototype]] property) of a specified object to another
object or null.
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>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Array<T>: ErasableGenericOwn<Array<JsValue>> + EncodeTypeDef + BatchableResult,
pub fn values<T>(object: &Object<T>) -> Array<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Array<T>: ErasableGenericOwn<Array<JsValue>> + EncodeTypeDef + BatchableResult,
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>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Result<Array<T>, JsValue>: ErasableGenericOwn<Result<Array<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
pub fn try_values<T>(object: &Object<T>) -> Result<Array<T>, JsValue>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Result<Array<T>, JsValue>: ErasableGenericOwn<Result<Array<JsValue>, JsValue>> + EncodeTypeDef + BatchableResult,
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 id(&self) -> u64
pub fn id(&self) -> u64
Get the heap ID for this value.
This is used internally for encoding values to send to JS.
Sourcepub fn unchecked_into_f64(&self) -> f64
pub fn unchecked_into_f64(&self) -> f64
Returns the value as f64 without type checking. Used by serde-wasm-bindgen for numeric conversions.
Sourcepub fn has_type<T>(&self) -> boolwhere
T: JsCast,
pub fn has_type<T>(&self) -> boolwhere
T: JsCast,
Check if this value is an instance of a specific JS type.
Sourcepub fn checked_div(&self, rhs: &JsValue) -> JsValue
pub fn checked_div(&self, rhs: &JsValue) -> JsValue
Checked division.
Sourcepub fn unsigned_shr(&self, rhs: &JsValue) -> u32
pub fn unsigned_shr(&self, rhs: &JsValue) -> u32
Unsigned right shift.
Sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Check if this value is a function.
Sourcepub fn is_undefined(&self) -> bool
pub fn is_undefined(&self) -> bool
Check if this value is undefined.
Sourcepub fn is_null_or_undefined(&self) -> bool
pub fn is_null_or_undefined(&self) -> bool
Check if this value is null or undefined.
Sourcepub fn js_in(&self, obj: &JsValue) -> bool
pub fn js_in(&self, obj: &JsValue) -> bool
Check if this value has a property with the given name.
Sourcepub fn as_debug_string(&self) -> String
pub fn as_debug_string(&self) -> String
Get a debug string representation of the value.
Trait Implementations§
Source§impl AsRef<Object> for AggregateError
impl AsRef<Object> for AggregateError
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 ErrorOptions
impl AsRef<Object> for ErrorOptions
Source§impl AsRef<Object> for FinalizationRegistry
impl AsRef<Object> for FinalizationRegistry
Source§impl AsRef<Object> for Float16Array
impl AsRef<Object> for Float16Array
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> BatchableResult for Object<T>
impl<T> BatchableResult for Object<T>
Source§impl<T> BinaryDecode for Object<T>
impl<T> BinaryDecode for Object<T>
fn decode(decoder: &mut DecodedData<'_>) -> Result<Self, DecodeError>
Source§impl<T> BinaryEncode for Object<T>
impl<T> BinaryEncode for Object<T>
fn encode(self, encoder: &mut EncodedData)
Source§impl<T> EncodeTypeDef for Object<T>
impl<T> EncodeTypeDef for Object<T>
Source§fn encode_type_def(buf: &mut Vec<u8>)
fn encode_type_def(buf: &mut Vec<u8>)
Source§impl From<AggregateError> for Object
impl From<AggregateError> for Object
Source§fn from(val: AggregateError) -> Object
fn from(val: AggregateError) -> Object
Source§impl From<ArrayBuffer> for Object
impl From<ArrayBuffer> for Object
Source§fn from(val: ArrayBuffer) -> Object
fn from(val: ArrayBuffer) -> Object
Source§impl From<ArrayBufferOptions> for Object
impl From<ArrayBufferOptions> for Object
Source§fn from(val: ArrayBufferOptions) -> Object
fn from(val: ArrayBufferOptions) -> Object
Source§impl<T: JsTuple> From<ArrayTuple<T>> for Object
impl<T: JsTuple> From<ArrayTuple<T>> for Object
Source§fn from(val: ArrayTuple<T>) -> Object
fn from(val: ArrayTuple<T>) -> Object
Source§impl<T> From<AsyncGenerator<T>> for Object
impl<T> From<AsyncGenerator<T>> for Object
Source§fn from(val: AsyncGenerator<T>) -> Object
fn from(val: AsyncGenerator<T>) -> Object
Source§impl From<BigInt64Array> for Object
impl From<BigInt64Array> for Object
Source§fn from(val: BigInt64Array) -> Object
fn from(val: BigInt64Array) -> Object
Source§impl From<BigUint64Array> for Object
impl From<BigUint64Array> for Object
Source§fn from(val: BigUint64Array) -> Object
fn from(val: BigUint64Array) -> Object
Source§impl From<CollatorOptions> for Object
impl From<CollatorOptions> for Object
Source§fn from(val: CollatorOptions) -> Object
fn from(val: CollatorOptions) -> Object
Source§impl From<DateTimeFormat> for Object
impl From<DateTimeFormat> for Object
Source§fn from(val: DateTimeFormat) -> Object
fn from(val: DateTimeFormat) -> Object
Source§impl From<DateTimeFormatOptions> for Object
impl From<DateTimeFormatOptions> for Object
Source§fn from(val: DateTimeFormatOptions) -> Object
fn from(val: DateTimeFormatOptions) -> Object
Source§impl From<DateTimeFormatPart> for Object
impl From<DateTimeFormatPart> for Object
Source§fn from(val: DateTimeFormatPart) -> Object
fn from(val: DateTimeFormatPart) -> Object
Source§impl From<DisplayNames> for Object
impl From<DisplayNames> for Object
Source§fn from(val: DisplayNames) -> Object
fn from(val: DisplayNames) -> Object
Source§impl From<DisplayNamesOptions> for Object
impl From<DisplayNamesOptions> for Object
Source§fn from(val: DisplayNamesOptions) -> Object
fn from(val: DisplayNamesOptions) -> Object
Source§impl From<DurationFormat> for Object
impl From<DurationFormat> for Object
Source§fn from(val: DurationFormat) -> Object
fn from(val: DurationFormat) -> Object
Source§impl From<DurationFormatOptions> for Object
impl From<DurationFormatOptions> for Object
Source§fn from(val: DurationFormatOptions) -> Object
fn from(val: DurationFormatOptions) -> Object
Source§impl From<DurationFormatPart> for Object
impl From<DurationFormatPart> for Object
Source§fn from(val: DurationFormatPart) -> Object
fn from(val: DurationFormatPart) -> Object
Source§impl From<ErrorOptions> for Object
impl From<ErrorOptions> for Object
Source§fn from(val: ErrorOptions) -> Object
fn from(val: ErrorOptions) -> Object
Source§impl From<FinalizationRegistry> for Object
impl From<FinalizationRegistry> for Object
Source§fn from(val: FinalizationRegistry) -> Object
fn from(val: FinalizationRegistry) -> Object
Source§impl From<Float16Array> for Object
impl From<Float16Array> for Object
Source§fn from(val: Float16Array) -> Object
fn from(val: Float16Array) -> Object
Source§impl From<Float32Array> for Object
impl From<Float32Array> for Object
Source§fn from(val: Float32Array) -> Object
fn from(val: Float32Array) -> Object
Source§impl From<Float64Array> for Object
impl From<Float64Array> for Object
Source§fn from(val: Float64Array) -> Object
fn from(val: Float64Array) -> Object
Source§impl From<Int16Array> for Object
impl From<Int16Array> for Object
Source§fn from(val: Int16Array) -> Object
fn from(val: Int16Array) -> Object
Source§impl From<Int32Array> for Object
impl From<Int32Array> for Object
Source§fn from(val: Int32Array) -> Object
fn from(val: Int32Array) -> Object
Source§impl<T> From<IteratorNext<T>> for Object
impl<T> From<IteratorNext<T>> for Object
Source§fn from(val: IteratorNext<T>) -> Object
fn from(val: IteratorNext<T>) -> Object
Source§impl From<ListFormat> for Object
impl From<ListFormat> for Object
Source§fn from(val: ListFormat) -> Object
fn from(val: ListFormat) -> Object
Source§impl From<ListFormatOptions> for Object
impl From<ListFormatOptions> for Object
Source§fn from(val: ListFormatOptions) -> Object
fn from(val: ListFormatOptions) -> Object
Source§impl From<ListFormatPart> for Object
impl From<ListFormatPart> for Object
Source§fn from(val: ListFormatPart) -> Object
fn from(val: ListFormatPart) -> Object
Source§impl From<LocaleMatcherOptions> for Object
impl From<LocaleMatcherOptions> for Object
Source§fn from(val: LocaleMatcherOptions) -> Object
fn from(val: LocaleMatcherOptions) -> Object
Source§impl From<NumberFormat> for Object
impl From<NumberFormat> for Object
Source§fn from(val: NumberFormat) -> Object
fn from(val: NumberFormat) -> Object
Source§impl From<NumberFormatOptions> for Object
impl From<NumberFormatOptions> for Object
Source§fn from(val: NumberFormatOptions) -> Object
fn from(val: NumberFormatOptions) -> Object
Source§impl From<NumberFormatPart> for Object
impl From<NumberFormatPart> for Object
Source§fn from(val: NumberFormatPart) -> Object
fn from(val: NumberFormatPart) -> Object
Source§impl From<PluralRules> for Object
impl From<PluralRules> for Object
Source§fn from(val: PluralRules) -> Object
fn from(val: PluralRules) -> Object
Source§impl From<PluralRulesOptions> for Object
impl From<PluralRulesOptions> for Object
Source§fn from(val: PluralRulesOptions) -> Object
fn from(val: PluralRulesOptions) -> Object
Source§impl<T> From<PromiseState<T>> for Object
impl<T> From<PromiseState<T>> for Object
Source§fn from(val: PromiseState<T>) -> Object
fn from(val: PromiseState<T>) -> Object
Source§impl<T> From<PropertyDescriptor<T>> for Object
impl<T> From<PropertyDescriptor<T>> for Object
Source§fn from(val: PropertyDescriptor<T>) -> Object
fn from(val: PropertyDescriptor<T>) -> Object
Source§impl From<RangeError> for Object
impl From<RangeError> for Object
Source§fn from(val: RangeError) -> Object
fn from(val: RangeError) -> Object
Source§impl From<ReferenceError> for Object
impl From<ReferenceError> for Object
Source§fn from(val: ReferenceError) -> Object
fn from(val: ReferenceError) -> Object
Source§impl From<RegExpMatchArray> for Object
impl From<RegExpMatchArray> for Object
Source§fn from(val: RegExpMatchArray) -> Object
fn from(val: RegExpMatchArray) -> Object
Source§impl From<RelativeTimeFormat> for Object
impl From<RelativeTimeFormat> for Object
Source§fn from(val: RelativeTimeFormat) -> Object
fn from(val: RelativeTimeFormat) -> Object
Source§impl From<RelativeTimeFormatOptions> for Object
impl From<RelativeTimeFormatOptions> for Object
Source§fn from(val: RelativeTimeFormatOptions) -> Object
fn from(val: RelativeTimeFormatOptions) -> Object
Source§impl From<RelativeTimeFormatPart> for Object
impl From<RelativeTimeFormatPart> for Object
Source§fn from(val: RelativeTimeFormatPart) -> Object
fn from(val: RelativeTimeFormatPart) -> Object
Source§impl From<SegmentData> for Object
impl From<SegmentData> for Object
Source§fn from(val: SegmentData) -> Object
fn from(val: SegmentData) -> Object
Source§impl From<SegmenterOptions> for Object
impl From<SegmenterOptions> for Object
Source§fn from(val: SegmenterOptions) -> Object
fn from(val: SegmenterOptions) -> Object
Source§fn from(val: SharedArrayBuffer) -> Object
fn from(val: SharedArrayBuffer) -> Object
Source§impl From<SyntaxError> for Object
impl From<SyntaxError> for Object
Source§fn from(val: SyntaxError) -> Object
fn from(val: SyntaxError) -> Object
Source§impl From<Uint16Array> for Object
impl From<Uint16Array> for Object
Source§fn from(val: Uint16Array) -> Object
fn from(val: Uint16Array) -> Object
Source§impl From<Uint32Array> for Object
impl From<Uint32Array> for Object
Source§fn from(val: Uint32Array) -> Object
fn from(val: Uint32Array) -> Object
Source§impl From<Uint8Array> for Object
impl From<Uint8Array> for Object
Source§fn from(val: Uint8Array) -> Object
fn from(val: Uint8Array) -> Object
Source§impl From<Uint8ClampedArray> for Object
impl From<Uint8ClampedArray> for Object
Source§fn from(val: Uint8ClampedArray) -> Object
fn from(val: Uint8ClampedArray) -> Object
Source§impl<T: 'static> IntoJsGeneric for Object<T>
impl<T: 'static> IntoJsGeneric 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
Source§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 is_type_of(val: &JsValue) -> bool
fn is_type_of(val: &JsValue) -> bool
JsValue provided
is a value of this type. Read moreSource§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,
Source§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
Source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T. Read more