Trait arbitrary::unstructured::Int [−][src]
pub trait Int: Copy + 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.
Implementations on Foreign Types
impl Int for u8
[src]
impl Int for u8
[src]type Widest = u128
const ZERO: Self
[src]
const ONE: Self
[src]
fn as_widest(self) -> Self::Widest
[src]
fn from_widest(w: Self::Widest) -> Self
[src]
fn from_u8(b: u8) -> Self
[src]
fn from_usize(u: usize) -> Self
[src]
fn checked_add(self, rhs: Self) -> Option<Self>
[src]
fn wrapping_add(self, rhs: Self) -> Self
[src]
impl Int for u16
[src]
impl Int for u16
[src]type Widest = u128
const ZERO: Self
[src]
const ONE: Self
[src]
fn as_widest(self) -> Self::Widest
[src]
fn from_widest(w: Self::Widest) -> Self
[src]
fn from_u8(b: u8) -> Self
[src]
fn from_usize(u: usize) -> Self
[src]
fn checked_add(self, rhs: Self) -> Option<Self>
[src]
fn wrapping_add(self, rhs: Self) -> Self
[src]
impl Int for u32
[src]
impl Int for u32
[src]type Widest = u128
const ZERO: Self
[src]
const ONE: Self
[src]
fn as_widest(self) -> Self::Widest
[src]
fn from_widest(w: Self::Widest) -> Self
[src]
fn from_u8(b: u8) -> Self
[src]
fn from_usize(u: usize) -> Self
[src]
fn checked_add(self, rhs: Self) -> Option<Self>
[src]
fn wrapping_add(self, rhs: Self) -> Self
[src]
impl Int for u64
[src]
impl Int for u64
[src]type Widest = u128
const ZERO: Self
[src]
const ONE: Self
[src]
fn as_widest(self) -> Self::Widest
[src]
fn from_widest(w: Self::Widest) -> Self
[src]
fn from_u8(b: u8) -> Self
[src]
fn from_usize(u: usize) -> Self
[src]
fn checked_add(self, rhs: Self) -> Option<Self>
[src]
fn wrapping_add(self, rhs: Self) -> Self
[src]
impl Int for u128
[src]
impl Int for u128
[src]type Widest = u128
const ZERO: Self
[src]
const ONE: Self
[src]
fn as_widest(self) -> Self::Widest
[src]
fn from_widest(w: Self::Widest) -> Self
[src]
fn from_u8(b: u8) -> Self
[src]
fn from_usize(u: usize) -> Self
[src]
fn checked_add(self, rhs: Self) -> Option<Self>
[src]
fn wrapping_add(self, rhs: Self) -> Self
[src]
impl Int for usize
[src]
impl Int for usize
[src]type Widest = u128
const ZERO: Self
[src]
const ONE: Self
[src]
fn as_widest(self) -> Self::Widest
[src]
fn from_widest(w: Self::Widest) -> Self
[src]
fn from_u8(b: u8) -> Self
[src]
fn from_usize(u: usize) -> Self
[src]
fn checked_add(self, rhs: Self) -> Option<Self>
[src]
fn wrapping_add(self, rhs: Self) -> Self
[src]
impl Int for i8
[src]
impl Int for i8
[src]type Widest = i128
const ZERO: Self
[src]
const ONE: Self
[src]
fn as_widest(self) -> Self::Widest
[src]
fn from_widest(w: Self::Widest) -> Self
[src]
fn from_u8(b: u8) -> Self
[src]
fn from_usize(u: usize) -> Self
[src]
fn checked_add(self, rhs: Self) -> Option<Self>
[src]
fn wrapping_add(self, rhs: Self) -> Self
[src]
impl Int for i16
[src]
impl Int for i16
[src]type Widest = i128
const ZERO: Self
[src]
const ONE: Self
[src]
fn as_widest(self) -> Self::Widest
[src]
fn from_widest(w: Self::Widest) -> Self
[src]
fn from_u8(b: u8) -> Self
[src]
fn from_usize(u: usize) -> Self
[src]
fn checked_add(self, rhs: Self) -> Option<Self>
[src]
fn wrapping_add(self, rhs: Self) -> Self
[src]
impl Int for i32
[src]
impl Int for i32
[src]type Widest = i128
const ZERO: Self
[src]
const ONE: Self
[src]
fn as_widest(self) -> Self::Widest
[src]
fn from_widest(w: Self::Widest) -> Self
[src]
fn from_u8(b: u8) -> Self
[src]
fn from_usize(u: usize) -> Self
[src]
fn checked_add(self, rhs: Self) -> Option<Self>
[src]
fn wrapping_add(self, rhs: Self) -> Self
[src]
impl Int for i64
[src]
impl Int for i64
[src]type Widest = i128
const ZERO: Self
[src]
const ONE: Self
[src]
fn as_widest(self) -> Self::Widest
[src]
fn from_widest(w: Self::Widest) -> Self
[src]
fn from_u8(b: u8) -> Self
[src]
fn from_usize(u: usize) -> Self
[src]
fn checked_add(self, rhs: Self) -> Option<Self>
[src]
fn wrapping_add(self, rhs: Self) -> Self
[src]
impl Int for i128
[src]
impl Int for i128
[src]type Widest = i128
const ZERO: Self
[src]
const ONE: Self
[src]
fn as_widest(self) -> Self::Widest
[src]
fn from_widest(w: Self::Widest) -> Self
[src]
fn from_u8(b: u8) -> Self
[src]
fn from_usize(u: usize) -> Self
[src]
fn checked_add(self, rhs: Self) -> Option<Self>
[src]
fn wrapping_add(self, rhs: Self) -> Self
[src]
impl Int for isize
[src]
impl Int for isize
[src]