tokio::util::bit

Function mask_for

Source
pub(crate) const fn mask_for(n: u32) -> usize
Expand description

Returns a usize with the right-most n bits set.