pub struct BalanceDiff { /* private fields */ }Expand description
Records a balance difference to apply to an address.
Implementations§
Source§impl BalanceDiff
impl BalanceDiff
Sourcepub fn new(
amount: i64,
dust_allowance: i64,
dust_outputs: i64,
) -> Result<Self, Error>
pub fn new( amount: i64, dust_allowance: i64, dust_outputs: i64, ) -> Result<Self, Error>
Creates a new BalanceDiff.
Sourcepub fn dust_allowance(&self) -> i64
pub fn dust_allowance(&self) -> i64
Returns the dust allowance of a BalanceDiff.
Sourcepub fn dust_outputs(&self) -> i64
pub fn dust_outputs(&self) -> i64
Returns the number of dust outputs of a BalanceDiff.
Sourcepub fn is_dust_mutating(&self) -> bool
pub fn is_dust_mutating(&self) -> bool
Returns whether dust allowance has been decreased or dust outputs has been increased.
Trait Implementations§
Source§impl Clone for BalanceDiff
impl Clone for BalanceDiff
Source§fn clone(&self) -> BalanceDiff
fn clone(&self) -> BalanceDiff
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BalanceDiff
impl Debug for BalanceDiff
Source§impl Default for BalanceDiff
impl Default for BalanceDiff
Source§fn default() -> BalanceDiff
fn default() -> BalanceDiff
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BalanceDiff
impl RefUnwindSafe for BalanceDiff
impl Send for BalanceDiff
impl Sync for BalanceDiff
impl Unpin for BalanceDiff
impl UnwindSafe for BalanceDiff
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