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.
pub fn recover<O>(
result: Result<O, ParseProgramError<O>>,
) -> Result<O, ParseProgramError<O>>
If this result
is Err(ProgramParsingError::Leftover)
, converts it to Ok(_)
with the parsed
output.