ConsIter

Trait ConsIter 

Source
pub trait ConsIter<V> {
    // Required method
    fn into_iter(self) -> impl Iterator<Item = V>;
}
Expand description

Iterates over a homogeneous cons-style tuple.

§Invariants

  • All elements have type V.
  • Iteration order matches tuple order.

Required Methods§

Source

fn into_iter(self) -> impl Iterator<Item = V>

Converts this into an iterator

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<Head, Tail> ConsIter<Head> for (Head, Tail)
where Tail: ConsIter<Head>,

Source§

fn into_iter(self) -> impl Iterator<Item = Head>

Source§

impl<V> ConsIter<V> for ()

Source§

fn into_iter(self) -> impl Iterator<Item = V>

Implementors§