pub trait SortedMembers<T: Ord> {
    fn sorted_members() -> Vec<T> ;

    fn contains(t: &T) -> bool { ... }
    fn count() -> usize { ... }
    fn add(_t: &T) { ... }
}
Expand description

A trait for a set which can enumerate its members in order.

Required Methods§

Get a vector of all members in the set, ordered.

Provided Methods§

Return true if this “contains” the given value t.

Get the number of items in the set.

Add an item that would satisfy contains. It does not make sure any other state is correctly maintained or generated.

Should be used for benchmarking only!!!

Implementors§