referrerpolicy=no-referrer-when-downgrade
polkadot_primitives::v8

Trait 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§

Source

fn type_index(&self) -> usize

Returns the index associated to this value.

Implementors§