Trait sp_npos_elections::TupleRef[][src]

pub trait TupleRef<K, V> {
    fn extract(&self) -> (&K, &V);
}
Expand description

A common wrapper trait for both (&A, &B) and &(A, B).

This allows us to implemented something for both Vec<_> and BTreeMap<_>, such as EvaluateSupport.

Required methods

Implementations on Foreign Types

Implementors