quil_rs::program

Function recover

Source
pub fn recover<O>(
    result: Result<O, ParseProgramError<O>>,
) -> Result<O, ParseProgramError<O>>
Expand description

If this result is Err(ProgramParsingError::Leftover), converts it to Ok(_) with the parsed output.