Skip to main content

parse_value

Function parse_value 

Source
fn parse_value<'a, O, P: Parser<Input<'a>, O, ErrMode<ParseStack<'a>>>>(
    keyword: &Keyword,
    value: &'a Value,
    parser: P,
) -> Result<O, BridgeError>
Expand description

Ensures that a combination of Keyword and Value uses a Value::Single and parses the value as a specific type.

ยงErrors

Returns a error for keyword if value is not Value::Single or cannot be parsed as the specific type.