ToUnsigned

Trait ToUnsigned 

Source
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§

Source

type Unsigned: UnsignedInteger + ToSigned<Signed = Self>

The corresponding unsigned type for this signed type.

Required Methods§

Source

fn to_unsigned(self) -> Self::Unsigned

Converts this value to its unsigned representation.

Implementations on Foreign Types§

Source§

impl ToUnsigned for i8

Source§

impl ToUnsigned for i16

Source§

impl ToUnsigned for i32

Source§

impl ToUnsigned for i64

Source§

impl ToUnsigned for i128

Source§

impl ToUnsigned for isize

Implementors§