WithUnsigned

Trait WithUnsigned 

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

Required Associated Types§

Required Methods§

Source

fn to_unsigned(self) -> Self::Unsigned

Implementations on Foreign Types§

Source§

impl WithUnsigned for i8

Source§

impl WithUnsigned for i16

Source§

impl WithUnsigned for i32

Source§

impl WithUnsigned for i64

Source§

impl WithUnsigned for i128

Source§

impl WithUnsigned for u8

Source§

type Unsigned = u8

Source§

fn to_unsigned(self) -> Self

Source§

impl WithUnsigned for u16

Source§

impl WithUnsigned for u32

Source§

impl WithUnsigned for u64

Source§

impl WithUnsigned for u128

Source§

impl WithUnsigned for BigInt

Source§

impl WithUnsigned for BigUint

Implementors§