#[repr(transparent)]
pub struct JsTypedArray<T> { /* private fields */ }
Expand description

The standard JS TypedArray type.

Trait Implementations

Formats the value using the given formatter. Read more

Gets a property from a JavaScript object that may be undefined and attempts to downcast the value if it existed. Read more

Gets a property from a JavaScript object as a JsValue. Read more

Gets a property from a JavaScript object and attempts to downcast as a specific type. Equivalent to calling obj.get(&mut cx)?.downcast_or_throw(&mut cx). Read more

This is supported on crate feature napi-6 only.

Gets a property from a JavaScript object that may be undefined and attempts to downcast the value if it existed. Read more

Gets a property from a JavaScript object as a JsValue. Read more

Gets a property from a JavaScript object and attempts to downcast as a specific type. Equivalent to calling obj.get(&mut cx)?.downcast_or_throw(&mut cx). Read more

This is supported on crate feature napi-6 only.

Gets a property from a JavaScript object that may be undefined and attempts to downcast the value if it existed. Read more

Gets a property from a JavaScript object as a JsValue. Read more

Gets a property from a JavaScript object and attempts to downcast as a specific type. Equivalent to calling obj.get(&mut cx)?.downcast_or_throw(&mut cx). Read more

This is supported on crate feature napi-6 only.

Gets a property from a JavaScript object that may be undefined and attempts to downcast the value if it existed. Read more

Gets a property from a JavaScript object as a JsValue. Read more

Gets a property from a JavaScript object and attempts to downcast as a specific type. Equivalent to calling obj.get(&mut cx)?.downcast_or_throw(&mut cx). Read more

This is supported on crate feature napi-6 only.

Gets a property from a JavaScript object that may be undefined and attempts to downcast the value if it existed. Read more

Gets a property from a JavaScript object as a JsValue. Read more

Gets a property from a JavaScript object and attempts to downcast as a specific type. Equivalent to calling obj.get(&mut cx)?.downcast_or_throw(&mut cx). Read more

This is supported on crate feature napi-6 only.

Gets a property from a JavaScript object that may be undefined and attempts to downcast the value if it existed. Read more

Gets a property from a JavaScript object as a JsValue. Read more

Gets a property from a JavaScript object and attempts to downcast as a specific type. Equivalent to calling obj.get(&mut cx)?.downcast_or_throw(&mut cx). Read more

This is supported on crate feature napi-6 only.

Gets a property from a JavaScript object that may be undefined and attempts to downcast the value if it existed. Read more

Gets a property from a JavaScript object as a JsValue. Read more

Gets a property from a JavaScript object and attempts to downcast as a specific type. Equivalent to calling obj.get(&mut cx)?.downcast_or_throw(&mut cx). Read more

This is supported on crate feature napi-6 only.

Gets a property from a JavaScript object that may be undefined and attempts to downcast the value if it existed. Read more

Gets a property from a JavaScript object as a JsValue. Read more

Gets a property from a JavaScript object and attempts to downcast as a specific type. Equivalent to calling obj.get(&mut cx)?.downcast_or_throw(&mut cx). Read more

This is supported on crate feature napi-6 only.

Gets a property from a JavaScript object that may be undefined and attempts to downcast the value if it existed. Read more

Gets a property from a JavaScript object as a JsValue. Read more

Gets a property from a JavaScript object and attempts to downcast as a specific type. Equivalent to calling obj.get(&mut cx)?.downcast_or_throw(&mut cx). Read more

This is supported on crate feature napi-6 only.

Gets a property from a JavaScript object that may be undefined and attempts to downcast the value if it existed. Read more

Gets a property from a JavaScript object as a JsValue. Read more

Gets a property from a JavaScript object and attempts to downcast as a specific type. Equivalent to calling obj.get(&mut cx)?.downcast_or_throw(&mut cx). Read more

This is supported on crate feature napi-6 only.

Statically checked immutable borrow of binary data. Read more

Statically checked mutable borrow of binary data. Read more

Dynamically checked immutable borrow of binary data, returning an error if the the borrow would overlap with a mutable borrow. Read more

Dynamically checked mutable borrow of binary data, returning an error if the the borrow would overlap with an active borrow. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.