Skip to main content
A trait used to retrieve the size of a type in bits.

Signature

Trait functions

bits

Returns the bit size of T as a usize.

Signature

Examples