pub fn confiscate(&mut self, amount: f64) -> Result<()> {
        if self.held_balance < amount {
            return Err(Error::InssuficientFunds);
        }
        self.held_balance -= amount;
        self.total_balance -= amount;
        Ok(())
    }
/// Remove `amount` of funds from holding, deceasing total balance.
Remove `amount` of funds from holding, deceasing total balance.
Remove ` amount ` of funds from holding deceasing total balance .
pub fn confiscate(&mut self, amount: f64) -> Result<()> {
        if self.held_balance < amount {
            return Err(Error::InssuficientFunds);
        }
        self.held_balance -= amount;
        self.total_balance -= amount;
        Ok(())
    }
pub fn confiscate ( & mut self , amount : f64 ) -> Result < ( ) > { if self . held_balance < amount { return Err ( Error :: InssuficientFunds ) ; } self . held_balance -= amount ; self . total_balance -= amount ; Ok ( ( ) ) }
Remove `amount` of funds from holding, deceasing total balance.
Remove ` amount ` of funds from holding deceasing total balance .
&mut self
amount
f64
&mut self
amount
f64