Trait BalanceHolder

Source
pub trait BalanceHolder {
    // Required methods
    fn balance(&self) -> Result<Amount, ArithmeticError>;
    fn try_add_assign(&mut self, other: Amount) -> Result<(), ArithmeticError>;
    fn try_sub_assign(&mut self, other: Amount) -> Result<(), ArithmeticError>;
}
Expand description

How to access the balance of an account.

Required Methods§

Implementations on Foreign Types§

Source§

impl BalanceHolder for Amount

Implementors§