Skip to main content

parse_key_value

Function parse_key_value 

Source
fn parse_key_value(
    token: &str,
) -> Result<(VariableValue, u32), MappingParseError>
Expand description

Parse the value part of the first item into a VariableValue` and its bit width.

For binary strings and nine-value strings, the bit width is determined by the string length. For hex, octal, and decimal numbers, the bit width is determined by the number of bits required to represent the actual numeric value.