referrerpolicy=no-referrer-when-downgrade
pallet_ranked_collective

Trait GetMaxVoters

Source
pub trait GetMaxVoters {
    type Class;

    // Required method
    fn get_max_voters(c: Self::Class) -> MemberIndex;
}
Expand description

Trait for getting the maximum number of voters for a given poll class.

Required Associated Types§

Source

type Class

Poll class type.

Required Methods§

Source

fn get_max_voters(c: Self::Class) -> MemberIndex

Return the maximum number of voters for the poll class c.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Config<I>, I: 'static> GetMaxVoters for Pallet<T, I>

Source§

type Class = <<T as Config<I>>::Polls as Polling<Tally<T, I, Pallet<T, I>>>>::Class