Skip to main content

no_host_bits

Function no_host_bits 

Source
fn no_host_bits(addr: u128, prefix: u8, width: u8) -> bool
Expand description

Returns true when the low width - prefix host bits of addr are all zero. Requires prefix <= width; the host_bits == 0 check also avoids u128::MAX >> 128, which panics.