pub trait VectorIter<E, const N: usize> {
// Required method
fn vector_iter<'a>(&'a self) -> impl VectorIteratorRef<'a, &'a E>
where E: 'a;
}Expand description
Trait to get iterator over elements of a vector. Should be implemented even for scalars.
Required Methods§
fn vector_iter<'a>(&'a self) -> impl VectorIteratorRef<'a, &'a E>where
E: 'a,
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.
Implementations on Foreign Types§
Source§impl VectorIter<usize, 0> for ()
impl VectorIter<usize, 0> for ()
fn vector_iter<'a>(&'a self) -> impl VectorIteratorRef<'a, &'a usize>where
usize: 'a,
Source§impl<E, const N: usize> VectorIter<E, N> for [E; N]
impl<E, const N: usize> VectorIter<E, N> for [E; N]
fn vector_iter<'a>(&'a self) -> impl VectorIteratorRef<'a, &'a E>where
E: 'a,
Source§impl<E, const N: usize> VectorIter<E, N> for [E]
impl<E, const N: usize> VectorIter<E, N> for [E]
fn vector_iter<'a>(&'a self) -> impl VectorIteratorRef<'a, &'a E>where
E: 'a,
Source§impl<E: Clone> VectorIter<E, 1> for (E,)
impl<E: Clone> VectorIter<E, 1> for (E,)
fn vector_iter<'a>(&'a self) -> impl VectorIteratorRef<'a, &'a E>where
E: 'a,
Source§impl<E: Clone> VectorIter<E, 2> for (E, E)
impl<E: Clone> VectorIter<E, 2> for (E, E)
fn vector_iter<'a>(&'a self) -> impl VectorIteratorRef<'a, &'a E>where
E: 'a,
Source§impl<E: Clone> VectorIter<E, 3> for (E, E, E)
impl<E: Clone> VectorIter<E, 3> for (E, E, E)
fn vector_iter<'a>(&'a self) -> impl VectorIteratorRef<'a, &'a E>where
E: 'a,
Source§impl<E: Clone> VectorIter<E, 4> for (E, E, E, E)
impl<E: Clone> VectorIter<E, 4> for (E, E, E, E)
fn vector_iter<'a>(&'a self) -> impl VectorIteratorRef<'a, &'a E>where
E: 'a,
Source§impl<T, E, const N: usize> VectorIter<E, N> for &Twhere
T: VectorIter<E, N>,
Implementation of VectorRef for references to collections.
impl<T, E, const N: usize> VectorIter<E, N> for &Twhere
T: VectorIter<E, N>,
Implementation of VectorRef for references to collections.
fn vector_iter<'a>(&'a self) -> impl VectorIteratorRef<'a, &'a E>where
E: 'a,
Source§impl<T, E, const N: usize> VectorIter<E, N> for &mut Twhere
T: VectorIter<E, N>,
Implementation of VectorRef for references to collections.
impl<T, E, const N: usize> VectorIter<E, N> for &mut Twhere
T: VectorIter<E, N>,
Implementation of VectorRef for references to collections.