Skip to main content

ArrayElement

Trait ArrayElement 

Source
pub trait ArrayElement: MetaDescribe + 'static {
    type Native: IntoBytes + Immutable + TryFromBytes + KnownLayout + Sync + Send + 'static;
}
Expand description

Maps a schema element marker to its native Rust type.

Implement this for zero-sized marker types (e.g. F32, BF16, I8) that identify an element format. Native provides the actual data type for zerocopy access; MetaDescribe (super-trait via BlobEncoding downstream) provides schema identity.

Required Associated Types§

Source

type Native: IntoBytes + Immutable + TryFromBytes + KnownLayout + Sync + Send + 'static

The native Rust type for this element.

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.

Implementors§