pub trait ArrayRef<E, const N: usize> {
// Required method
fn array_ref(&self) -> &[E; N];
}Expand description
A trait for accessing a reference to a fixed-size array from a collection.
This trait requires the collection to implement Collection.
Required Methods§
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.