recent_capacity

Function recent_capacity 

Source
pub const fn recent_capacity() -> NonZeroUsize
Expand description

What: Provide the non-zero capacity used by the LRU recent cache.

Inputs: None.

Output:

  • Non-zero capacity for the recent LRU cache.

Details:

  • Uses a const unchecked constructor because the capacity constant is guaranteed to be greater than zero.