Skip to main content

cap_effort

Function cap_effort 

Source
pub fn cap_effort(level: Option<&str>, cap: Option<&str>) -> Option<String>
Expand description

Clamp level down to cap. Returns level unchanged when there is no cap, when the cap does not bind, or when EITHER side is unrankable (an unknown spelling must not be silently rewritten into a ladder value the user never asked for).