pub trait FindAndMutate<'a, T, Rhs = &'a T>where
    Self: IntoIterator<Item = T>,
{ fn find_checked_add(&mut self, add: Rhs) -> Result<(), CoreError>; fn find_checked_sub(&mut self, sub: Rhs) -> Result<(), CoreError>; }

Required Methods§

Safely adding and adding amount

Safely finding and subtracting amount and remove it if it’s zero

Implementations on Foreign Types§

Implementors§