Iterable

Trait Iterable 

Source
pub trait Iterable<'a> {
    type Iter: Iterator;

    // Required method
    fn get_iter(&'a self) -> Self::Iter;
}
Expand description

A trait for iterable reference types.

Required Associated Types§

Required Methods§

Source

fn get_iter(&'a self) -> Self::Iter

Get an iterator over the reference.

Implementations on Foreign Types§

Source§

impl<'a> Iterable<'a> for &'a str

Source§

type Iter = Checkpoint<Peekable<Chars<'a>>>

Source§

fn get_iter(&'a self) -> Self::Iter

Source§

impl<'a> Iterable<'a> for String

Source§

type Iter = Checkpoint<Peekable<Chars<'a>>>

Source§

fn get_iter(&'a self) -> Self::Iter

Source§

impl<'a, T> Iterable<'a> for &'a [T]
where T: 'a,

Source§

type Iter = Peekable<Iter<'a, T>>

Source§

fn get_iter(&'a self) -> Self::Iter

Source§

impl<'a, T> Iterable<'a> for Vec<T>
where T: 'a,

Source§

type Iter = Peekable<Iter<'a, T>>

Source§

fn get_iter(&'a self) -> Self::Iter

Implementors§