pub trait UnsignedAbs {
    type Output;

    fn unsigned_abs(self) -> Self::Output;
}
Expand description

Unsigned absolute value.

Examples

use dashu_base::UnsignedAbs;
assert_eq!((-5i8).unsigned_abs(), 5u8);

Required Associated Types

Required Methods

Implementations on Foreign Types

Implementors