Trait frame_support::traits::SortedMembers[][src]

pub trait SortedMembers<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 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