Primitive Type isize [-]  [+]

Operations and constants for pointer-sized signed integers (isize type)

This type was recently added to replace int. The rollout of the new type will gradually take place over the alpha cycle along with the development of clearer conventions around integer types.

Trait Implementations

impl Int for isize

fn zero() -> isize

fn one() -> isize

fn min_value() -> isize

fn max_value() -> isize

fn count_ones(self) -> usize

fn leading_zeros(self) -> usize

fn trailing_zeros(self) -> usize

fn rotate_left(self, n: usize) -> isize

fn rotate_right(self, n: usize) -> isize

fn swap_bytes(self) -> isize

fn checked_add(self, other: isize) -> Option<isize>

fn checked_sub(self, other: isize) -> Option<isize>

fn checked_mul(self, other: isize) -> Option<isize>

fn checked_div(self, v: isize) -> Option<isize>

fn count_zeros(self) -> usize

fn from_be(x: Self) -> Self

fn from_le(x: Self) -> Self

fn to_be(self) -> Self

fn to_le(self) -> Self

fn saturating_add(self, other: Self) -> Self

fn saturating_sub(self, other: Self) -> Self

fn pow(self, exp: usize) -> Self

impl SignedInt for isize

fn abs(self) -> isize

fn signum(self) -> isize

fn is_positive(self) -> bool

fn is_negative(self) -> bool

impl ToPrimitive for isize

fn to_int(&self) -> Option<isize>

fn to_i8(&self) -> Option<i8>

fn to_i16(&self) -> Option<i16>

fn to_i32(&self) -> Option<i32>

fn to_i64(&self) -> Option<i64>

fn to_uint(&self) -> Option<usize>

fn to_u8(&self) -> Option<u8>

fn to_u16(&self) -> Option<u16>

fn to_u32(&self) -> Option<u32>

fn to_u64(&self) -> Option<u64>

fn to_f32(&self) -> Option<f32>

fn to_f64(&self) -> Option<f64>

impl FromPrimitive for isize

fn from_int(n: isize) -> Option<isize>

fn from_i8(n: i8) -> Option<isize>

fn from_i16(n: i16) -> Option<isize>

fn from_i32(n: i32) -> Option<isize>

fn from_i64(n: i64) -> Option<isize>

fn from_uint(n: usize) -> Option<isize>

fn from_u8(n: u8) -> Option<isize>

fn from_u16(n: u16) -> Option<isize>

fn from_u32(n: u32) -> Option<isize>

fn from_u64(n: u64) -> Option<isize>

fn from_f32(n: f32) -> Option<isize>

fn from_f64(n: f64) -> Option<isize>

impl NumCast for isize

fn from<N: ToPrimitive>(n: N) -> Option<isize>

impl FromStr for isize

fn from_str(src: &str) -> Option<isize>

impl FromStrRadix for isize

fn from_str_radix(src: &str, radix: usize) -> Option<isize>

impl Zeroable for isize

impl Add for isize

type Output = isize

fn add(self, other: isize) -> isize

impl Sub for isize

type Output = isize

fn sub(self, other: isize) -> isize

impl Mul for isize

type Output = isize

fn mul(self, other: isize) -> isize

impl Div for isize

type Output = isize

fn div(self, other: isize) -> isize

impl Rem for isize

type Output = isize

fn rem(self, other: isize) -> isize

impl Neg for isize

type Output = isize

fn neg(self) -> isize

impl Not for isize

type Output = isize

fn not(self) -> isize

impl BitAnd for isize

type Output = isize

fn bitand(self, rhs: isize) -> isize

impl BitOr for isize

type Output = isize

fn bitor(self, rhs: isize) -> isize

impl BitXor for isize

type Output = isize

fn bitxor(self, other: isize) -> isize

impl Shl<usize> for isize

type Output = isize

fn shl(self, other: usize) -> isize

impl Shr<usize> for isize

type Output = isize

fn shr(self, other: usize) -> isize

impl PartialEq for isize

fn eq(&self, other: &isize) -> bool

fn ne(&self, other: &isize) -> bool

impl Eq for isize

impl PartialOrd for isize

fn partial_cmp(&self, other: &isize) -> Option<Ordering>

fn lt(&self, other: &isize) -> bool

fn le(&self, other: &isize) -> bool

fn ge(&self, other: &isize) -> bool

fn gt(&self, other: &isize) -> bool

impl Ord for isize

fn cmp(&self, other: &isize) -> Ordering

impl Clone for isize

fn clone(&self) -> isize

Return a deep copy of the value.

fn clone_from(&mut self, source: &Self)

impl Default for isize

fn default() -> isize

impl Step for isize

fn step(&mut self)

fn step_back(&mut self)

fn steps_between(start: &isize, end: &isize) -> Option<usize>

impl<S: Writer + Hasher> Hash<S> for isize

fn hash(&self, state: &mut S)

impl String for isize

fn fmt(&self, f: &mut Formatter) -> Result

impl Binary for isize

fn fmt(&self, f: &mut Formatter) -> Result

impl Octal for isize

fn fmt(&self, f: &mut Formatter) -> Result

impl LowerHex for isize

fn fmt(&self, f: &mut Formatter) -> Result

impl UpperHex for isize

fn fmt(&self, f: &mut Formatter) -> Result

impl Show for isize

fn fmt(&self, f: &mut Formatter) -> Result