pub struct Object<T = JsValue> { /* private fields */ }Implementations§
Source§impl Object
impl Object
pub fn assign<T>(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,
Source§impl Object
impl Object
pub fn try_assign<T>(
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,
Source§impl Object
impl Object
pub fn assign2<T>(
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
Source§impl Object
impl Object
pub fn assign3<T>(
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
Source§impl Object
impl Object
pub fn assign_many<T>(
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,
Source§impl Object
impl Object
pub fn create<T>(prototype: &Object<T>) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Source§impl Object
impl Object
pub fn define_property<T>(
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,
Source§impl Object
impl Object
pub fn define_property_str<T>(
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,
Source§impl Object
impl Object
pub fn define_property_symbol<T>(
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,
Source§impl Object
impl Object
pub fn define_properties<T>(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,
Source§impl Object
impl Object
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,
Source§impl Object
impl Object
pub fn freeze<T>(value: &Object<T>) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Source§impl Object
impl Object
pub fn from_entries_typed<T: JsGeneric, 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,
Source§impl Object
impl Object
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,
Source§impl Object
impl Object
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,
Source§impl Object
impl Object
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,
Source§impl Object
impl Object
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,
Source§impl Object
impl Object
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,
Source§impl Object
impl Object
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,
Source§impl<T> Object<T>
impl<T> Object<T>
pub fn has_own_property(&self, property: &JsValue) -> bool
👎Deprecated:
Use Object::hasOwn instead.
Source§impl Object
impl Object
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,
Source§impl Object
impl Object
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,
Source§impl Object
impl Object
pub fn is_extensible<T>(object: &Object<T>) -> boolwhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Source§impl Object
impl Object
pub fn is_frozen<T>(object: &Object<T>) -> boolwhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Source§impl Object
impl Object
pub fn is_sealed<T>(object: &Object<T>) -> boolwhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Source§impl Object
impl Object
pub fn keys<T>(object: &Object<T>) -> Arraywhere
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Source§impl Object
impl Object
pub fn prevent_extensions<T>(object: &Object<T>)where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Source§impl Object
impl Object
pub fn seal<T>(value: &Object<T>) -> Object<T>where
Object<T>: ErasableGenericBorrow<Object<JsValue>> + EncodeTypeDef + ErasableGenericOwn<Object<JsValue>> + BatchableResult,
for<'__wry_bindgen> &'__wry_bindgen Object<T>: BinaryEncode,
Source§impl Object
impl Object
pub fn set_prototype_of<T>(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,
Source§impl Object
impl Object
pub fn try_set_prototype_of<T>(
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,
Source§impl Object
impl Object
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,
Source§impl Object
impl Object
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,
Methods from Deref<Target = JsValue>§
pub const NULL: JsValue
pub const UNDEFINED: JsValue
pub const TRUE: JsValue
pub const FALSE: JsValue
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 ErrorOptions
impl AsRef<Object> for ErrorOptions
Source§impl AsRef<Object> for ArrayBufferOptions
impl AsRef<Object> for ArrayBufferOptions
Source§impl AsRef<Object> for ArrayBuffer
impl AsRef<Object> for ArrayBuffer
Source§impl AsRef<Object> for FinalizationRegistry
impl AsRef<Object> for FinalizationRegistry
Source§impl<T> AsRef<Object> for AsyncGenerator<T>
impl<T> AsRef<Object> for AsyncGenerator<T>
Source§impl<T> AsRef<Object> for IteratorNext<T>
impl<T> AsRef<Object> for IteratorNext<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 SyntaxError
impl AsRef<Object> for SyntaxError
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 LocaleMatcherOptions
impl AsRef<Object> for LocaleMatcherOptions
Source§impl AsRef<Object> for CollatorOptions
impl AsRef<Object> for CollatorOptions
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 DateTimeFormat
impl AsRef<Object> for DateTimeFormat
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 NumberFormat
impl AsRef<Object> for NumberFormat
Source§impl AsRef<Object> for PluralRulesOptions
impl AsRef<Object> for PluralRulesOptions
Source§impl AsRef<Object> for PluralRules
impl AsRef<Object> for PluralRules
Source§impl AsRef<Object> for RelativeTimeFormat
impl AsRef<Object> for RelativeTimeFormat
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 ListFormat
impl AsRef<Object> for ListFormat
Source§impl AsRef<Object> for SegmenterOptions
impl AsRef<Object> for SegmenterOptions
Source§impl AsRef<Object> for SegmentData
impl AsRef<Object> for SegmentData
Source§impl AsRef<Object> for DisplayNamesOptions
impl AsRef<Object> for DisplayNamesOptions
Source§impl AsRef<Object> for DisplayNames
impl AsRef<Object> for DisplayNames
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 DurationFormat
impl AsRef<Object> for DurationFormat
Source§impl<T> AsRef<Object> for PromiseState<T>
impl<T> AsRef<Object> for PromiseState<T>
Source§impl AsRef<Object> for Float16Array
impl AsRef<Object> for Float16Array
Source§impl AsRef<Object> for Int16Array
impl AsRef<Object> for Int16Array
Source§impl AsRef<Object> for Int32Array
impl AsRef<Object> for Int32Array
Source§impl AsRef<Object> for Uint8Array
impl AsRef<Object> for Uint8Array
Source§impl AsRef<Object> for Uint8ClampedArray
impl AsRef<Object> for Uint8ClampedArray
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 Float32Array
impl AsRef<Object> for Float32Array
Source§impl AsRef<Object> for Float64Array
impl AsRef<Object> for Float64Array
Source§impl AsRef<Object> for BigInt64Array
impl AsRef<Object> for BigInt64Array
Source§impl AsRef<Object> for BigUint64Array
impl AsRef<Object> for BigUint64Array
Source§impl<T> BatchableResult for Object<T>
impl<T> BatchableResult for Object<T>
fn try_placeholder(batch: &mut Runtime<'_>) -> Option<Self>
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>
fn encode_type_def(type_def: &mut TypeDef)
impl Eq for Object
Source§impl From<AggregateError> for Object
impl From<AggregateError> for Object
Source§fn from(val: AggregateError) -> Object
fn from(val: AggregateError) -> Object
Converts to this type from the input type.
Source§impl From<ArrayBuffer> for Object
impl From<ArrayBuffer> for Object
Source§fn from(val: ArrayBuffer) -> Object
fn from(val: ArrayBuffer) -> Object
Converts to this type from the input type.
Source§impl From<ArrayBufferOptions> for Object
impl From<ArrayBufferOptions> for Object
Source§fn from(val: ArrayBufferOptions) -> Object
fn from(val: ArrayBufferOptions) -> Object
Converts to this type from the input type.
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
Converts to this type from the input type.
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
Converts to this type from the input type.
Source§impl From<BigInt64Array> for Object
impl From<BigInt64Array> for Object
Source§fn from(val: BigInt64Array) -> Object
fn from(val: BigInt64Array) -> Object
Converts to this type from the input type.
Source§impl From<BigUint64Array> for Object
impl From<BigUint64Array> for Object
Source§fn from(val: BigUint64Array) -> Object
fn from(val: BigUint64Array) -> Object
Converts to this type from the input type.
Source§impl From<CollatorOptions> for Object
impl From<CollatorOptions> for Object
Source§fn from(val: CollatorOptions) -> Object
fn from(val: CollatorOptions) -> Object
Converts to this type from the input type.
Source§impl From<DateTimeFormat> for Object
impl From<DateTimeFormat> for Object
Source§fn from(val: DateTimeFormat) -> Object
fn from(val: DateTimeFormat) -> Object
Converts to this type from the input type.
Source§impl From<DateTimeFormatOptions> for Object
impl From<DateTimeFormatOptions> for Object
Source§fn from(val: DateTimeFormatOptions) -> Object
fn from(val: DateTimeFormatOptions) -> Object
Converts to this type from the input type.
Source§impl From<DateTimeFormatPart> for Object
impl From<DateTimeFormatPart> for Object
Source§fn from(val: DateTimeFormatPart) -> Object
fn from(val: DateTimeFormatPart) -> Object
Converts to this type from the input type.
Source§impl From<DisplayNames> for Object
impl From<DisplayNames> for Object
Source§fn from(val: DisplayNames) -> Object
fn from(val: DisplayNames) -> Object
Converts to this type from the input type.
Source§impl From<DisplayNamesOptions> for Object
impl From<DisplayNamesOptions> for Object
Source§fn from(val: DisplayNamesOptions) -> Object
fn from(val: DisplayNamesOptions) -> Object
Converts to this type from the input type.
Source§impl From<DurationFormat> for Object
impl From<DurationFormat> for Object
Source§fn from(val: DurationFormat) -> Object
fn from(val: DurationFormat) -> Object
Converts to this type from the input type.
Source§impl From<DurationFormatOptions> for Object
impl From<DurationFormatOptions> for Object
Source§fn from(val: DurationFormatOptions) -> Object
fn from(val: DurationFormatOptions) -> Object
Converts to this type from the input type.
Source§impl From<DurationFormatPart> for Object
impl From<DurationFormatPart> for Object
Source§fn from(val: DurationFormatPart) -> Object
fn from(val: DurationFormatPart) -> Object
Converts to this type from the input type.
Source§impl From<ErrorOptions> for Object
impl From<ErrorOptions> for Object
Source§fn from(val: ErrorOptions) -> Object
fn from(val: ErrorOptions) -> Object
Converts to this type from the input type.
Source§impl From<FinalizationRegistry> for Object
impl From<FinalizationRegistry> for Object
Source§fn from(val: FinalizationRegistry) -> Object
fn from(val: FinalizationRegistry) -> Object
Converts to this type from the input type.
Source§impl From<Float16Array> for Object
impl From<Float16Array> for Object
Source§fn from(val: Float16Array) -> Object
fn from(val: Float16Array) -> Object
Converts to this type from the input type.
Source§impl From<Float32Array> for Object
impl From<Float32Array> for Object
Source§fn from(val: Float32Array) -> Object
fn from(val: Float32Array) -> Object
Converts to this type from the input type.
Source§impl From<Float64Array> for Object
impl From<Float64Array> for Object
Source§fn from(val: Float64Array) -> Object
fn from(val: Float64Array) -> Object
Converts to this type from the input type.
Source§impl From<Int16Array> for Object
impl From<Int16Array> for Object
Source§fn from(val: Int16Array) -> Object
fn from(val: Int16Array) -> Object
Converts to this type from the input type.
Source§impl From<Int32Array> for Object
impl From<Int32Array> for Object
Source§fn from(val: Int32Array) -> Object
fn from(val: Int32Array) -> Object
Converts to this type from the input type.
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
Converts to this type from the input type.
Source§impl From<ListFormat> for Object
impl From<ListFormat> for Object
Source§fn from(val: ListFormat) -> Object
fn from(val: ListFormat) -> Object
Converts to this type from the input type.
Source§impl From<ListFormatOptions> for Object
impl From<ListFormatOptions> for Object
Source§fn from(val: ListFormatOptions) -> Object
fn from(val: ListFormatOptions) -> Object
Converts to this type from the input type.
Source§impl From<ListFormatPart> for Object
impl From<ListFormatPart> for Object
Source§fn from(val: ListFormatPart) -> Object
fn from(val: ListFormatPart) -> Object
Converts to this type from the input type.
Source§impl From<LocaleMatcherOptions> for Object
impl From<LocaleMatcherOptions> for Object
Source§fn from(val: LocaleMatcherOptions) -> Object
fn from(val: LocaleMatcherOptions) -> Object
Converts to this type from the input type.
Source§impl From<NumberFormat> for Object
impl From<NumberFormat> for Object
Source§fn from(val: NumberFormat) -> Object
fn from(val: NumberFormat) -> Object
Converts to this type from the input type.
Source§impl From<NumberFormatOptions> for Object
impl From<NumberFormatOptions> for Object
Source§fn from(val: NumberFormatOptions) -> Object
fn from(val: NumberFormatOptions) -> Object
Converts to this type from the input type.
Source§impl From<NumberFormatPart> for Object
impl From<NumberFormatPart> for Object
Source§fn from(val: NumberFormatPart) -> Object
fn from(val: NumberFormatPart) -> Object
Converts to this type from the input type.
Source§impl From<PluralRules> for Object
impl From<PluralRules> for Object
Source§fn from(val: PluralRules) -> Object
fn from(val: PluralRules) -> Object
Converts to this type from the input type.
Source§impl From<PluralRulesOptions> for Object
impl From<PluralRulesOptions> for Object
Source§fn from(val: PluralRulesOptions) -> Object
fn from(val: PluralRulesOptions) -> Object
Converts to this type from the input type.
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
Converts to this type from the input type.
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
Converts to this type from the input type.
Source§impl From<RangeError> for Object
impl From<RangeError> for Object
Source§fn from(val: RangeError) -> Object
fn from(val: RangeError) -> Object
Converts to this type from the input type.
Source§impl From<ReferenceError> for Object
impl From<ReferenceError> for Object
Source§fn from(val: ReferenceError) -> Object
fn from(val: ReferenceError) -> Object
Converts to this type from the input type.
Source§impl From<RegExpMatchArray> for Object
impl From<RegExpMatchArray> for Object
Source§fn from(val: RegExpMatchArray) -> Object
fn from(val: RegExpMatchArray) -> Object
Converts to this type from the input type.
Source§impl From<RelativeTimeFormat> for Object
impl From<RelativeTimeFormat> for Object
Source§fn from(val: RelativeTimeFormat) -> Object
fn from(val: RelativeTimeFormat) -> Object
Converts to this type from the input type.
Source§impl From<RelativeTimeFormatOptions> for Object
impl From<RelativeTimeFormatOptions> for Object
Source§fn from(val: RelativeTimeFormatOptions) -> Object
fn from(val: RelativeTimeFormatOptions) -> Object
Converts to this type from the input type.
Source§impl From<RelativeTimeFormatPart> for Object
impl From<RelativeTimeFormatPart> for Object
Source§fn from(val: RelativeTimeFormatPart) -> Object
fn from(val: RelativeTimeFormatPart) -> Object
Converts to this type from the input type.
Source§impl From<SegmentData> for Object
impl From<SegmentData> for Object
Source§fn from(val: SegmentData) -> Object
fn from(val: SegmentData) -> Object
Converts to this type from the input type.
Source§impl From<SegmenterOptions> for Object
impl From<SegmenterOptions> for Object
Source§fn from(val: SegmenterOptions) -> Object
fn from(val: SegmenterOptions) -> Object
Converts to this type from the input type.
Source§fn from(val: SharedArrayBuffer) -> Object
fn from(val: SharedArrayBuffer) -> Object
Converts to this type from the input type.
Source§impl From<SyntaxError> for Object
impl From<SyntaxError> for Object
Source§fn from(val: SyntaxError) -> Object
fn from(val: SyntaxError) -> Object
Converts to this type from the input type.
Source§impl From<Uint8Array> for Object
impl From<Uint8Array> for Object
Source§fn from(val: Uint8Array) -> Object
fn from(val: Uint8Array) -> Object
Converts to this type from the input type.
Source§impl From<Uint8ClampedArray> for Object
impl From<Uint8ClampedArray> for Object
Source§fn from(val: Uint8ClampedArray) -> Object
fn from(val: Uint8ClampedArray) -> Object
Converts to this type from the input type.
Source§impl From<Uint16Array> for Object
impl From<Uint16Array> for Object
Source§fn from(val: Uint16Array) -> Object
fn from(val: Uint16Array) -> Object
Converts to this type from the input type.
Source§impl From<Uint32Array> for Object
impl From<Uint32Array> for Object
Source§fn from(val: Uint32Array) -> Object
fn from(val: Uint32Array) -> Object
Converts to this type from the input type.
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
Check if a JsValue is an instance of this type. Read more
Source§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
Unchecked cast from JsValue to this type. Read more
Source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
Unchecked cast from a JsValue reference to a reference of this type. Read more
Source§fn is_type_of(val: &JsValue) -> bool
fn is_type_of(val: &JsValue) -> bool
Performs a dynamic type check to see whether the
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,
Test whether this JS value has a type
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,
Try to cast this value to type T. Read more
Source§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
Try to get a reference to type T from this value. Read more
Source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
Test whether this JS value is an instance of the type
T. Read moreSource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Unchecked cast to another type.
Source§fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
Unchecked cast to a reference of another type.
impl UpcastFrom<AggregateError> 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<BigInt64Array> for Object
impl UpcastFrom<BigInt> 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<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<Int8Array> for Object
impl UpcastFrom<Int16Array> for Object
impl UpcastFrom<Int32Array> 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> UpcastFrom<Object<T>> for JsValue
impl<T> UpcastFrom<Object<T>> for JsOption<JsValue>
impl<T, __WryUpcastTarget0> UpcastFrom<Object<T>> for Object<__WryUpcastTarget0>where
__WryUpcastTarget0: UpcastFrom<T>,
impl<T, __WryUpcastTarget0> UpcastFrom<Object<T>> for JsOption<Object<__WryUpcastTarget0>>where
__WryUpcastTarget0: 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<Uint8Array> for Object
impl UpcastFrom<Uint8ClampedArray> for Object
impl UpcastFrom<Uint16Array> for Object
impl UpcastFrom<Uint32Array> 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>
impl<T> Send for Object<T>
impl<T> Sync for Object<T>
impl<T> Unpin for Object<T>
impl<T> UnsafeUnpin for Object<T>
impl<T> UnwindSafe for Object<T>
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromJsFuture for Twhere
T: TryFromJsValue,
impl<T> FromJsFuture for Twhere
T: TryFromJsValue,
Source§impl<T> FromWasmAbi for Twhere
T: JsGeneric,
impl<T> FromWasmAbi for Twhere
T: JsGeneric,
Source§impl<T> IntoWasmAbi for Twhere
T: JsGeneric,
impl<T> IntoWasmAbi for Twhere
T: JsGeneric,
impl<T> JsGeneric for Twhere
T: ErasableGeneric<Repr = JsValue> + UpcastFrom<T> + Upcast<JsValue> + JsCast + JsRefEncode + EncodeTypeDef + BinaryEncode + BinaryDecode + BatchableResult + 'static,
impl<T> OptionFromWasmAbi for Twhere
T: FromWasmAbi,
impl<T> OptionIntoWasmAbi for Twhere
T: IntoWasmAbi,
Source§impl<T> RefFromWasmAbi for Twhere
T: ?Sized,
impl<T> RefFromWasmAbi for Twhere
T: ?Sized,
Source§impl<T> ReturnSync for Twhere
T: IntoWasmAbi,
impl<T> ReturnSync for Twhere
T: IntoWasmAbi,
Source§fn return_abi(self, encoder: &mut EncodedData)
fn return_abi(self, encoder: &mut EncodedData)
Encode
self as the function’s return payload.