parse_min

Function parse_min 

Source
pub fn parse_min<T>(
    key: &str,
    raw: Option<&str>,
    min: T,
    meaning: &str,
) -> Result<Option<T>, String>
where T: FromStr + PartialOrd + Display + Copy,
Expand description

2026-09-26: Parse an optional numeric setting, trimmed at both ends.

Returns Ok(None) when raw is unset, empty or whitespace-only; the caller applies its default. A value that does not parse, or parses below min, is an Err whose message names key, quotes raw, and states meaning and min.