upper_bound

Function upper_bound 

Source
const fn upper_bound(bits: u32) -> usize
Expand description

Compute the upper bound for the encoded length of a integer type as a VarInt.

This is a private function only called at compile-time, hence why it panics on unexpected input.