pub trait ArrayRef<E, const N: usize> {
// Required method
fn array_ref(&self) -> &[E; N];
}Expand description
Univeral vector. A trait for accessing a reference to a fixed-size array from a collection.
This trait requires the collection to implement Collection.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<T, E, const N: usize> ArrayRef<E, N> for &Twhere
T: ArrayRef<E, N>,
Implementation of ArrayRef for references to collections.
impl<T, E, const N: usize> ArrayRef<E, N> for &Twhere
T: ArrayRef<E, N>,
Implementation of ArrayRef for references to collections.