opt_value

Function opt_value 

Source
fn opt_value<T>(input: &mut &str) -> ModalResult<Option<T>>
where T: FromStr + Display, T::Err: Display,
Expand description

Parses a single optional value from the input.

Consumes text until the end of the current line.

ยงErrors

Returns an error if the next token cannot be parsed into Option<T>.