pub trait VectorRef<E, const N: usize> {
// Required method
fn vector_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§
Sourcefn vector_ref(&self) -> &[E; N]
fn vector_ref(&self) -> &[E; N]
Returns a reference to a fixed-size array from the collection.
§Returns
&[ E ; N ]
: A reference to the fixed-size array.
Implementations on Foreign Types§
Source§impl<E> VectorRef<E, 4> for (E, E, E, E)
impl<E> VectorRef<E, 4> for (E, E, E, E)
fn vector_ref(&self) -> &[E; 4]
Source§impl<T, E, const N: usize> VectorRef<E, N> for &Twhere
T: VectorRef<E, N>,
Implementation of VectorRef
for references to collections.
impl<T, E, const N: usize> VectorRef<E, N> for &Twhere
T: VectorRef<E, N>,
Implementation of VectorRef
for references to collections.