pub trait ToUnsigned {
type Unsigned: UnsignedInteger + ToSigned<Signed = Self>;
// Required method
fn to_unsigned(self) -> Self::Unsigned;
}Expand description
Trait for converting a signed integer to its unsigned equivalent.
Required Associated Types§
Sourcetype Unsigned: UnsignedInteger + ToSigned<Signed = Self>
type Unsigned: UnsignedInteger + ToSigned<Signed = Self>
The corresponding unsigned type for this signed type.
Required Methods§
Sourcefn to_unsigned(self) -> Self::Unsigned
fn to_unsigned(self) -> Self::Unsigned
Converts this value to its unsigned representation.