#[repr(u32)]pub enum JSTypedArrayType {
Show 13 variants
Int8Array = 0,
Int16Array = 1,
Int32Array = 2,
Uint8Array = 3,
Uint8ClampedArray = 4,
Uint16Array = 5,
Uint32Array = 6,
Float32Array = 7,
Float64Array = 8,
ArrayBuffer = 9,
None = 10,
BigInt64Array = 11,
BigUint64Array = 12,
}
Expand description
An enum identifying the Typed Array type of a JSTypedArray
.
Variants§
Int8Array = 0
Int16Array = 1
Int32Array = 2
Uint8Array = 3
Uint8ClampedArray = 4
Uint16Array = 5
Uint32Array = 6
Float32Array = 7
Float64Array = 8
ArrayBuffer = 9
None = 10
BigInt64Array = 11
BigUint64Array = 12
Trait Implementations§
Source§impl Clone for JSTypedArrayType
impl Clone for JSTypedArrayType
Source§fn clone(&self) -> JSTypedArrayType
fn clone(&self) -> JSTypedArrayType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JSTypedArrayType
impl Debug for JSTypedArrayType
Source§impl Hash for JSTypedArrayType
impl Hash for JSTypedArrayType
Source§impl PartialEq for JSTypedArrayType
impl PartialEq for JSTypedArrayType
impl Copy for JSTypedArrayType
impl Eq for JSTypedArrayType
impl StructuralPartialEq for JSTypedArrayType
Auto Trait Implementations§
impl Freeze for JSTypedArrayType
impl RefUnwindSafe for JSTypedArrayType
impl Send for JSTypedArrayType
impl Sync for JSTypedArrayType
impl Unpin for JSTypedArrayType
impl UnwindSafe for JSTypedArrayType
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> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
Source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
Prepares an output buffer, then turns this buffer into an
Owned
.
User-provided closure F
must only write to and not read from &mut Self
.Source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
Source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
Source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
Source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.