pub trait WithUnsigned {
type Unsigned;
// Required method
fn to_unsigned(self) -> Self::Unsigned;
}
Expand description
Represents a number type with corresponding unsigned version
Unsigned number can implement this trait as well, with type Unsigned = Self
.