Skip to main content

effective_cap

Function effective_cap 

Source
pub(super) fn effective_cap(opt: Option<NonZeroUsize>, config: usize) -> usize
Expand description

Effective ceiling combining an opts cap with a config sentinel, where a None opts value or a 0 config value means unbounded and the tighter wins.