Trait pallet_referenda::InsertSorted
source · pub trait InsertSorted<T> {
// Required method
fn insert_sorted_by_key<F: FnMut(&T) -> K, K: PartialOrd<K> + Ord>(
&mut self,
t: T,
f: F
) -> bool;
}
Required Methods§
sourcefn insert_sorted_by_key<F: FnMut(&T) -> K, K: PartialOrd<K> + Ord>(
&mut self,
t: T,
f: F
) -> bool
fn insert_sorted_by_key<F: FnMut(&T) -> K, K: PartialOrd<K> + Ord>( &mut self, t: T, f: F ) -> bool
Inserts an item into a sorted series.
Returns true
if it was inserted, false
if it would belong beyond the bound of the
series.