neon::types::buffer

Trait Binary

Source
pub trait Binary: Sealed + Copy {
    const TYPE_TAG: TypedArrayType;
}
Expand description

A marker trait for all possible element types of binary buffers.

This trait can only be implemented within the Neon library.

Required Associated Constants§

Source

const TYPE_TAG: TypedArrayType

The internal Node-API enum value for this binary type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Binary for f32

Source§

const TYPE_TAG: TypedArrayType = TypedArrayType::F32

Source§

impl Binary for f64

Source§

const TYPE_TAG: TypedArrayType = TypedArrayType::F64

Source§

impl Binary for i8

Source§

const TYPE_TAG: TypedArrayType = TypedArrayType::I8

Source§

impl Binary for i16

Source§

const TYPE_TAG: TypedArrayType = TypedArrayType::I16

Source§

impl Binary for i32

Source§

const TYPE_TAG: TypedArrayType = TypedArrayType::I32

Source§

impl Binary for i64

Source§

const TYPE_TAG: TypedArrayType = TypedArrayType::I64

Source§

impl Binary for u8

Source§

const TYPE_TAG: TypedArrayType = TypedArrayType::U8

Source§

impl Binary for u16

Source§

const TYPE_TAG: TypedArrayType = TypedArrayType::U16

Source§

impl Binary for u32

Source§

const TYPE_TAG: TypedArrayType = TypedArrayType::U32

Source§

impl Binary for u64

Source§

const TYPE_TAG: TypedArrayType = TypedArrayType::U64

Implementors§