deltachat::tools

Function inc_and_check

source
pub(crate) fn inc_and_check<T: PrimInt + AddAssign + Debug>(
    t: &mut T,
    expected: T,
) -> Result<()>
Expand description

Increments *t and checks that it equals to expected after that.