Skip to main content

parse_confirmation

Function parse_confirmation 

Source
pub fn parse_confirmation(
    input: &str,
) -> Result<YesNoAnswer, ConfirmationParseError>
Expand description

Parses a yes/no confirmation answer.

ยงErrors

Returns ConfirmationParseError when input is empty or not a recognized yes/no answer.