Primitive type

core::num::i16

The methods of i16 that core::num defines, and the instances that mention it.

Methods

const MINsource

const MIN: i16 = -32768;

The smallest i16.

const MAXsource

const MAX: i16 = 32767;

The largest i16.

const BITSsource

const BITS: u32 = 16;

The width of i16 in bits.

Instances

instance Ord[i16, i16]source

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

In core::cmp.

i16s in numeric order.

instance Format[i16, W]source

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

In core::fmt.

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

instance Printable[i16, W]source

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

In core::fmt.

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

instance Hash[i16]source

instance Hash[i16] { ... }

In core::hash.

A i16 hashes as its 64-bit value.

instance Eq[i16, i16]source

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

In core::hash.

i16s are equal when their values are.

instance HashIn[i16, C]source

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

In core::hash.

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