pub trait Contains<T: Ord> {
    fn sorted_members() -> Vec<T>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
; fn contains(t: &T) -> bool { ... }
fn count() -> usize { ... }
fn add(_t: &T) { ... } }
Expand description

A trait for querying whether a type can be said to “contain” a value.

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