Primitive type

std::num::u16

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

Methods

const MINsource

const MIN: u16 = 0;

The smallest u16.

const MAXsource

const MAX: u16 = 0xffff;

The largest u16.

const BITSsource

const BITS: u32 = 16;

The width of u16 in bits.

Instances

instance Ord[u16, u16]source

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

In std::cmp.

u16s in numeric order.

instance Format[u16, W]source

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

In core::fmt.

A u16 formats as its decimal digits.

instance Printable[u16, W]source

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

In core::fmt.

A u16 prints as its decimal digits.

instance Hash[u16]source

instance Hash[u16] { ... }

In std::hash.

A u16 hashes as its 64-bit value.

instance Eq[u16, u16]source

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

In std::hash.

u16s are equal when their values are.

instance HashIn[u16, C]source

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

In std::hash.

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