pub trait ArrayElement<Tag: Copy + PartialEq>:
Copy
+ 'static
+ Sealed {
const TAG: Tag;
}Expand description
Connects a Rust primitive to its element-type discriminant. Implemented
once per (type, tag) pair: e.g. i32: ArrayElement<NumericArrayEnum>
(with TAG = Integer32) and i32: ArrayElement<PackedArrayEnum> (with
TAG = Integer32). Sealed — only the primitives in [sealed] above can
satisfy the Sealed super-bound.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".