Struct chain_impl_mockchain::stake::Stake
source · pub struct Stake(pub u64);
Tuple Fields§
§0: u64
Implementations§
source§impl Stake
impl Stake
pub fn from_value(v: Value) -> Self
pub fn zero() -> Self
pub fn sum<I>(values: I) -> Selfwhere I: Iterator<Item = Self>,
pub fn checked_add(&self, rhs: Self) -> Option<Self>
pub fn checked_sub(&self, rhs: Self) -> Option<Self>
pub fn wrapping_add(&self, rhs: Self) -> Self
pub fn wrapping_sub(&self, rhs: Self) -> Self
sourcepub fn split_in(self, n: u32) -> SplitValueIn
pub fn split_in(self, n: u32) -> SplitValueIn
Divide a value by n equals parts, with a potential remainder
Trait Implementations§
source§impl AddAssign<Stake> for Stake
impl AddAssign<Stake> for Stake
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresource§impl Ord for Stake
impl Ord for Stake
source§impl PartialEq<Stake> for Stake
impl PartialEq<Stake> for Stake
source§impl PartialOrd<Stake> for Stake
impl PartialOrd<Stake> for Stake
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 Stake
impl Eq for Stake
impl StructuralEq for Stake
impl StructuralPartialEq for Stake
Auto Trait Implementations§
impl RefUnwindSafe for Stake
impl Send for Stake
impl Sync for Stake
impl Unpin for Stake
impl UnwindSafe for Stake
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