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