Trait rando::Memory [] [src]

pub trait Memory<K>: Default {
    fn len(&self) -> usize;
fn contains(&self, key: &K) -> bool;
fn push(&mut self, key: K); }

A trait for data-structures in which a RandIter can store values of type K representing the indices or other keys of the items that it has already yielded.

Required Methods

Returns the number of K values stored in self.

Returns true if key has been stored in self, and false otherwise.

Stores key in self.

Implementations on Foreign Types

impl<K, A> Memory<K> for SmallVec<A> where
    K: PartialEq,
    A: Array<Item = K>, 
[src]

[src]

[src]

[src]

impl<K> Memory<K> for Vec<K> where
    K: PartialEq
[src]

[src]

[src]

[src]

impl<K> Memory<K> for BTreeSet<K> where
    K: Ord
[src]

[src]

[src]

[src]

Implementors