Skip to main content

memory_max_parse

Function memory_max_parse 

Source
pub fn memory_max_parse(line: &str) -> Result<Option<u64>, ParseIntError>
Expand description

Parses the max memory line.

§Returns

  • None if line is “max”.
  • Some(u64) if the line could be parsed to u64.

§Errors

Returns an error if the line could not be parsed to u64 and it is not “max”.