rustc_data_structures::tagged_ptr

Function bits_for

Source
pub const fn bits_for<T: ?Sized + Aligned>() -> u32
Expand description

Returns the number of bits available for use for tags in a pointer to T (this is based on T’s alignment).