Primitive type

std::num::i32

The methods of i32 that std::num defines, and the instances that mention it.

Methods

const MINsource

const MIN: i32 = -2147483648;

The smallest i32.

const MAXsource

const MAX: i32 = 2147483647;

The largest i32.

const BITSsource

const BITS: u32 = 32;

The width of i32 in bits.

Instances

instance Ord[i32, i32]source

instance Ord[i32, i32] { ... }

In std::cmp.

i32s in numeric order.

instance Format[i32, W]source

forall W where Writer[W].
instance Format[i32, W] { ... }

In core::fmt.

A i32 formats as its decimal digits, after - when negative.

instance Printable[i32, W]source

forall W where Writer[W].
instance Printable[i32, W] { ... }

In core::fmt.

An i32 prints as its decimal digits, after - when negative.

instance Hash[i32]source

instance Hash[i32] { ... }

In std::hash.

A i32 hashes as its 64-bit value.

instance Eq[i32, i32]source

instance Eq[i32, i32] { ... }

In std::hash.

i32s are equal when their values are.

instance HashIn[i32, C]source

forall C.
instance HashIn[i32, C] { ... }

In std::hash.

A i32 key, under any capability: hashed and compared as Hash and Eq do.