[][src]Trait fluid::traits::collection::Collection

pub trait Collection {
    type Item: PartialEq;
    fn is_empty(&self) -> bool;
fn contains(&self, item: &Self::Item) -> bool; }

Abstracts a collection, like Vec, VecDeque, LinkedList, etc.

Associated Types

type Item: PartialEq

The type of the items yielded by the collection.

Loading content...

Required methods

fn is_empty(&self) -> bool

Returns whether the collection is empty or not.

fn contains(&self, item: &Self::Item) -> bool

Verifies if the collection contains an item.

Loading content...

Implementations on Foreign Types

impl<T> Collection for Vec<T> where
    T: PartialEq<T>, 
[src]

type Item = T

impl<T> Collection for VecDeque<T> where
    T: PartialEq<T>, 
[src]

type Item = T

impl<T> Collection for LinkedList<T> where
    T: PartialEq<T>, 
[src]

type Item = T

Loading content...

Implementors

Loading content...