Signature
Trait functions
bits
Returns the bit size ofT as a usize.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
pub trait BitSize
T as a usize.
fn bits() -> u32
use core::num::traits::BitSize;
let bits = BitSize::::bits();
assert!(bits == 8);
Was this page helpful?