pub unsafe trait ArrayExt {
type Item;
const LENGTH: usize;
}
Expand description
Extension trait for fixed size arrays.
§Safety
Item
must be the type of the array’s items (eg:T
in[T; N]
).LENGTH
must be the length of the array (eg:N
in[T; N]
).
Required Associated Constants§
Required Associated Types§
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.