pub fn parse_reserve(s: &str) -> Result<MemoryReserve, UnitError>Expand description
Parses a memory reserve: <n>% with n at most 90, or a size (see parse_size).
ยงErrors
Returns UnitError::Reserve for anything else.
pub fn parse_reserve(s: &str) -> Result<MemoryReserve, UnitError>Parses a memory reserve: <n>% with n at most 90, or a size (see parse_size).
Returns UnitError::Reserve for anything else.