pub fn recover<O>(
result: Result<O, ProgramError<O>>
) -> Result<O, ProgramError<O>>
Expand description
If this result
is Err(ProgramError::Leftover)
, converts it to Ok(_)
with the parsed
output.
pub fn recover<O>(
result: Result<O, ProgramError<O>>
) -> Result<O, ProgramError<O>>
If this result
is Err(ProgramError::Leftover)
, converts it to Ok(_)
with the parsed
output.