pub trait Iter {
type Output<'iter>: Iterator
where Self: 'iter;
// Required method
fn iter(&self) -> Self::Output<'_>;
}Expand description
See Iter::iter for more information.
Required Associated Types§
Required Methods§
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<T> Iter for &[T]
let structure = cl_aux::doc_tests::slice();
assert_eq!(cl_aux::Iter::iter(&structure).next().unwrap(), &1);
impl<T> Iter for &[T]
let structure = cl_aux::doc_tests::slice();
assert_eq!(cl_aux::Iter::iter(&structure).next().unwrap(), &1);Source§impl<T, const N: usize> Iter for [T; N]
let mut structure = cl_aux::doc_tests::array();
assert_eq!(cl_aux::Iter::iter(&structure).next().unwrap(), &1);
impl<T, const N: usize> Iter for [T; N]
let mut structure = cl_aux::doc_tests::array();
assert_eq!(cl_aux::Iter::iter(&structure).next().unwrap(), &1);