pub const fn length(bytes: usize) -> usizeExpand description
Calls try_length and panics if the result is None.
The only reason for this function to panic is an overflow.
§Panics
This function panics if the result of try_length is None.
§Examples
Regular usage:
use pkce_std::encoding::length;
assert_eq!(length(96), 128);Overflow:
ⓘ
use pkce_std::encoding::length;
length(usize::MAX);