Function deltachat::tools::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.