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(isize) -> isize

fn from_le(isize) -> isize

fn to_be(self) -> isize

fn to_le(self) -> isize

fn saturating_add(self, isize) -> isize

fn saturating_sub(self, isize) -> isize

fn pow(self, usize) -> isize

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>

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_uint(&self) -> Option<usize>

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

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

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

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>

fn from_int(isize) -> Option<isize>

fn from_i8(i8) -> Option<isize>

fn from_i16(i16) -> Option<isize>

fn from_i32(i32) -> Option<isize>

fn from_uint(usize) -> Option<isize>

fn from_u8(u8) -> Option<isize>

fn from_u16(u16) -> Option<isize>

fn from_u32(u32) -> Option<isize>

fn from_f32(f32) -> Option<isize>

fn from_f64(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<isize> for isize

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

type Output

impl Sub<isize> for isize

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

type Output

impl Mul<isize> for isize

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

type Output

impl Div<isize> for isize

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

type Output

impl Rem<isize> for isize

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

type Output

impl Neg for isize

fn neg(self) -> isize

type Output

impl Not for isize

fn not(self) -> isize

type Output

impl BitAnd<isize> for isize

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

type Output

impl BitOr<isize> for isize

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

type Output

impl BitXor<isize> for isize

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

type Output

impl Shl<usize> for isize

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

type Output

impl Shr<usize> for isize

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

type Output

impl PartialEq<isize> for isize

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

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

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

impl Eq for isize

fn assert_receiver_is_total_eq(&self)

impl PartialOrd<isize> 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

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

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

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

fn ge(&self, &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, &isize)

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: Hasher + Writer> Hash<S> for isize

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

impl String for isize

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

impl Binary for isize

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

impl Octal for isize

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

impl LowerHex for isize

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

impl UpperHex for isize

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

impl Show for isize

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

impl SampleRange for isize

fn construct_range(low: isize, high: isize) -> Range<isize>

fn sample_range<R: Rng>(r: &Range<isize>, rng: &mut R) -> isize

impl Rand for isize

fn rand<R: Rng>(rng: &mut R) -> isize