Enum napi::bindgen_prelude::TypedArrayType
source · #[repr(i32)]
#[non_exhaustive]
pub enum TypedArrayType {
Int8,
Uint8,
Uint8Clamped,
Int16,
Uint16,
Int32,
Uint32,
Float32,
Float64,
BigInt64,
BigUint64,
Unknown,
}
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
Uint8
Uint8Clamped
Int16
Uint16
Int32
Uint32
Float32
Float64
BigInt64
BigUint64
Unknown
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<TypedArrayType> for TypedArrayType
impl PartialEq<TypedArrayType> 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 ==
.