Skip to main content

decode_integer

Function decode_integer 

Source
pub fn decode_integer(raw: &str) -> Result<i64, ValueError>
Expand description

Decodes the raw text of an integer value.

The text is a decimal i64 with an optional - sign. KeyFile::get_integer reads a value in the same way.

ยงErrors

A ValueError if the text is not a decimal i64. White space in the text and a leading + sign cause this error.