Struct finality_grandpa::voter_set::VoterInfo[][src]

pub struct VoterInfo { /* fields omitted */ }

Information about a voter in a VoterSet.

Implementations

impl VoterInfo[src]

pub fn position(&self) -> usize[src]

Get the position of the voter in the total order associated with the VoterSet from which the VoterInfo was obtained.

pub fn weight(&self) -> VoterWeight[src]

Get the weight of the voter.

Trait Implementations

impl Clone for VoterInfo[src]

impl Debug for VoterInfo[src]

impl Eq for VoterInfo[src]

impl PartialEq<VoterInfo> for VoterInfo[src]

impl StructuralEq for VoterInfo[src]

impl StructuralPartialEq for VoterInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for VoterInfo

impl Send for VoterInfo

impl Sync for VoterInfo

impl Unpin for VoterInfo

impl UnwindSafe for VoterInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.