Struct chain_impl_mockchain::vote::Weight
source · pub struct Weight(u64);
Expand description
weight of a vote
it is often associated to the stake
. when the tally is counted,
each vote will have the associated weight encoded in.
Tuple Fields§
§0: u64
Implementations§
Trait Implementations§
source§impl Ord for Weight
impl Ord for Weight
source§impl PartialEq<Weight> for Weight
impl PartialEq<Weight> for Weight
source§impl PartialOrd<Weight> for Weight
impl PartialOrd<Weight> for Weight
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Weight
impl Eq for Weight
impl StructuralEq for Weight
impl StructuralPartialEq for Weight
Auto Trait Implementations§
impl RefUnwindSafe for Weight
impl Send for Weight
impl Sync for Weight
impl Unpin for Weight
impl UnwindSafe for Weight
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more