Trait polkadot_sdk_frame::traits::SortedMembers
pub trait SortedMembers<T>where
T: Ord,{
// Required method
fn sorted_members() -> Vec<T>;
// Provided methods
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§
fn sorted_members() -> Vec<T>
fn sorted_members() -> Vec<T>
Get a vector of all members in the set, ordered.
Provided Methods§
Object Safety§
This trait is not object safe.