Struct di::Collection [] [src]

pub struct Collection<T> {
    // some fields omitted
}

Methods

impl<T> Collection<T>
[src]

fn new() -> Collection<T>

fn push(&mut self, item: T)

fn iter<'a>(&'a self) -> Iter<'a, T>

Trait Implementations

impl<T> Debug for Collection<T> where T: Debug
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<T> AsRef<[T]> for Collection<T>
[src]

fn as_ref(&self) -> &[T]

Performs the conversion.

impl<'a, T> IntoIterator for &'a Collection<T>
[src]

type IntoIter = Iter<'a, T>

Which kind of iterator are we turning this into?

type Item = &'a T

The type of the elements being iterated over.

fn into_iter(self) -> Iter<'a, T>

Creates an iterator from a value. Read more

impl<T> IntoIterator for Collection<T>
[src]

type IntoIter = IntoIter<T>

Which kind of iterator are we turning this into?

type Item = T

The type of the elements being iterated over.

fn into_iter(self) -> IntoIter<T>

Creates an iterator from a value. Read more

impl<T> Into<Vec<T>> for Collection<T>
[src]

fn into(self) -> Vec<T>

Performs the conversion.