utils::number

Trait UnsignedInteger

Source
pub trait UnsignedInteger: Integer<Unsigned = Self> + From<u8> {
    // Required method
    fn wrapping_add_signed(self, rhs: Self::Signed) -> Self;
}
Expand description

Trait implemented by the primitive unsigned integer types.

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl UnsignedInteger for u8

Source§

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

Source§

impl UnsignedInteger for u16

Source§

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

Source§

impl UnsignedInteger for u32

Source§

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

Source§

impl UnsignedInteger for u64

Source§

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

Source§

impl UnsignedInteger for u128

Source§

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

Source§

impl UnsignedInteger for usize

Source§

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

Implementors§