Skip to main content

MAX_CAPACITY

Constant MAX_CAPACITY 

Source
pub const MAX_CAPACITY: u64 = _; // 2_147_483_647u64
Expand description

filib’s ring::MAX_CAPACITY, the same for every ring: the indices are u32 and run mod 2N, so 2N fits a u32. A ring holds at most what fits in its region, ⌊(size − HEADER) / sizeof(T)⌋, capped at this.