Trait WrappingSub

trait WrappingSub: Sized + Sub<Self, Output = Self>

Performs subtraction that wraps around on overflow.

Required Methods

fn wrapping_sub(self: &Self, v: &Self) -> Self

Wrapping (modular) subtraction. Computes self - other, wrapping around at the boundary of the type.

Implementors