fn parse_clearable_value<'a, O, P: Parser<&'a str, O, ErrMode<ContextError>>>(
keyword: &Keyword,
value: &'a ClearableValue,
parser: P,
) -> Result<Override<O>, BridgeError>
Expand description
Ensures that a combination of Keyword
and ClearableValue
uses a
ClearableValue::Single
and parses the value as a specific type.
ยงErrors
Returns an error if
value
cannot be parsed as a specific type,- or
value
is aClearableValue::Array
.