Function insert_value_into_option_or_error

Source
fn insert_value_into_option_or_error(
    cx: &AcceptContext<'_>,
    param: &MetaItemParser<'_>,
    item: &mut Option<Symbol>,
) -> Option<()>
Expand description

Tries to insert the value of a key = value meta item into an option.

Emits an error when either the option was already Some, or the arguments weren’t of form name = value