[][src]Trait dci::ItemSet

pub trait ItemSet: Clone + 'static {
    fn empty() -> Self;
fn add(&mut self, item: usize); }

A trait for an ItemSet. ItemSets must be owned, cloneable and iterable. Once again, a bitset implementation is highly recommended.

An ItemSet must also provide an IntoIterator implementation:

This example is not tested
for<'a> &'a I: IntoIterator<Item = usize>

This implementation must yield the items in lexicographic order.

Required methods

fn empty() -> Self

Create an empty ItemSet.

fn add(&mut self, item: usize)

Add an item to the ItemSet.

Loading content...

Implementors

Loading content...