[src]

Function std::num::abs_sub

pub fn abs_sub<T: Signed>(x: T, y: T) -> T

The positive difference of two numbers.

Returns zero if the number is less than or equal to other, otherwise the difference between self and other is returned.