pub fn parse_gb_env(
name: &str,
var: Result<String, VarError>,
) -> Result<Option<u64>>Expand description
Parses a decimal-GB env knob: unset is None, anything unparseable is an error so a typo
such as 4GB cannot silently leave the knob off. Takes the std::env::var result so it can
be tested without touching the process environment.