MAX_CAPACITY

Constant MAX_CAPACITY 

Source
pub const MAX_CAPACITY: usize = _; // 32_767usize
Expand description

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.