Primitive type

std::num::u8

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

Methods

const MINsource

const MIN: u8 = 0;

The smallest u8.

const MAXsource

const MAX: u8 = 0xff;

The largest u8.

const BITSsource

const BITS: u32 = 8;

The width of u8 in bits.

Instances

instance Ord[u8, u8]source

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

In std::cmp.

u8s in numeric order.

instance Format[u8, W]source

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

In core::fmt.

A u8 formats as its decimal digits.

instance Printable[u8, W]source

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

In core::fmt.

A u8 prints as its decimal digits.

instance Hash[u8]source

instance Hash[u8] { ... }

In std::hash.

A u8 hashes as its 64-bit value.

instance Eq[u8, u8]source

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

In std::hash.

u8s are equal when their values are.

instance HashIn[u8, C]source

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

In std::hash.

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

instance ReadBytes[Exclusive!['r], Slice[u8, 'r]]source

forall 'r.
instance ReadBytes[Exclusive!['r], Slice[u8, 'r]] { ... }

In std::slice.

A byte slice is read through its domain's Exclusive!.

instance ReadBytes[Shared!['r, 'q], Slice[u8, 'r]]source

forall 'r, 'q.
instance ReadBytes[Shared!['r, 'q], Slice[u8, 'r]] { ... }

In std::slice.

A byte slice is read through any node of its domain's shared-read tree.