Trait polkadot_primitives::v2::TypeIndex
source · pub trait TypeIndex {
// Required method
fn type_index(&self) -> usize;
}
Expand description
Trait required for type specific indices e.g. ValidatorIndex
and GroupIndex
Required Methods§
sourcefn type_index(&self) -> usize
fn type_index(&self) -> usize
Returns the index associated to this value.