Enum napi_h::bindgen_prelude::TypedArrayType
source · #[non_exhaustive]#[repr(i32)]pub enum TypedArrayType {
Int8 = 0,
Uint8 = 1,
Uint8Clamped = 2,
Int16 = 3,
Uint16 = 4,
Int32 = 5,
Uint32 = 6,
Float32 = 7,
Float64 = 8,
BigInt64 = 9,
BigUint64 = 10,
Unknown = 1_024,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Int8 = 0
Uint8 = 1
Uint8Clamped = 2
Int16 = 3
Uint16 = 4
Int32 = 5
Uint32 = 6
Float32 = 7
Float64 = 8
BigInt64 = 9
BigUint64 = 10
Unknown = 1_024
compatible with higher versions
Trait Implementations§
source§impl Clone for TypedArrayType
impl Clone for TypedArrayType
source§fn clone(&self) -> TypedArrayType
fn clone(&self) -> TypedArrayType
Returns a copy 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 TypedArrayType
impl Debug for TypedArrayType
source§impl From<TypedArrayType> for napi_typedarray_type
impl From<TypedArrayType> for napi_typedarray_type
source§fn from(value: TypedArrayType) -> napi_typedarray_type
fn from(value: TypedArrayType) -> napi_typedarray_type
Converts to this type from the input type.
source§impl From<i32> for TypedArrayType
impl From<i32> for TypedArrayType
source§fn from(value: napi_typedarray_type) -> Self
fn from(value: napi_typedarray_type) -> Self
Converts to this type from the input type.
source§impl Hash for TypedArrayType
impl Hash for TypedArrayType
source§impl PartialEq for TypedArrayType
impl PartialEq for TypedArrayType
source§fn eq(&self, other: &TypedArrayType) -> bool
fn eq(&self, other: &TypedArrayType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TypedArrayType
impl Eq for TypedArrayType
impl StructuralPartialEq for TypedArrayType
Auto Trait Implementations§
impl Freeze for TypedArrayType
impl RefUnwindSafe for TypedArrayType
impl Send for TypedArrayType
impl Sync for TypedArrayType
impl Unpin for TypedArrayType
impl UnwindSafe for TypedArrayType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.