Constant ffi_support::handle_map::MAX_CAPACITY [−][src]
pub const MAX_CAPACITY: usize = (1 << 15) - 1; // 0x0_000_000_000_007_fffusize
The maximum capacity of a HandleMap
. Attempting to instantiate one with
a larger capacity will cause a panic.
Note: This could go as high as (1 << 16) - 2
, but doing is seems more
error prone. For the sake of paranoia, we limit it to this size, which is
already quite a bit larger than it seems like we’re likely to ever need.