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

    fn contains(t: &T) -> bool { ... }
    fn count() -> usize { ... }
}
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.

Examples found in repository?
src/traits/members.rs (line 241)
240
241
242
	fn contains(t: &T) -> bool {
		OM::contains(t)
	}

Get the number of items in the set.

Implementors§