Trait utils::number::UnsignedInteger

source ·
pub trait UnsignedInteger: Integer + From<u8> {
    type Signed: SignedInteger;

    // Required method
    fn wrapping_add_signed(self, rhs: Self::Signed) -> Self;
}
Expand description

Trait implemented by the primitive unsigned integer types.

Required Associated Types§

Required Methods§

source

fn wrapping_add_signed(self, rhs: Self::Signed) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl UnsignedInteger for u8

source§

type Signed = i8

source§

fn wrapping_add_signed(self, rhs: Self::Signed) -> Self

source§

impl UnsignedInteger for u16

source§

type Signed = i16

source§

fn wrapping_add_signed(self, rhs: Self::Signed) -> Self

source§

impl UnsignedInteger for u32

source§

type Signed = i32

source§

fn wrapping_add_signed(self, rhs: Self::Signed) -> Self

source§

impl UnsignedInteger for u64

source§

type Signed = i64

source§

fn wrapping_add_signed(self, rhs: Self::Signed) -> Self

source§

impl UnsignedInteger for u128

source§

type Signed = i128

source§

fn wrapping_add_signed(self, rhs: Self::Signed) -> Self

source§

impl UnsignedInteger for usize

source§

type Signed = isize

source§

fn wrapping_add_signed(self, rhs: Self::Signed) -> Self

Implementors§