pub trait Int: Copy + Debug + PartialOrd + Ord + Sub<Self, Output = Self> + Rem<Self, Output = Self> + Shr<Self, Output = Self> + Shl<usize, Output = Self> + BitOr<Self, Output = Self> { }
Expand description

A trait that is implemented for all of the primitive integers:

  • u8
  • u16
  • u32
  • u64
  • u128
  • usize
  • i8
  • i16
  • i32
  • i64
  • i128
  • isize

Don’t implement this trait yourself.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Int for i8

source§

impl Int for i16

source§

impl Int for i32

source§

impl Int for i64

source§

impl Int for i128

source§

impl Int for isize

source§

impl Int for u8

source§

impl Int for u16

source§

impl Int for u32

source§

impl Int for u64

source§

impl Int for u128

source§

impl Int for usize

Implementors§