Type Definition Result
type Result<T, E> = Result<T, E>;
Return type for recursive descent parsers that fail irrecoverably on unexpected input.
This is just an alias for the std::result::Result type, added to hold this documentation.
See ResultExt for additional methods on Result values provided by this crate.
This is used for parsers that are guaranteed to never return the Fallthrough value. See
Parsed on how to convert between Result and Parsed.
impl<T, E> ResultExt<T, E> for Result<T, E>
fn err_into<E2: From<E>>(self) -> Result<T, E2>
Equivalent to map_err(From::from).
fn and_also(self, f: impl FnOnce(&mut T) -> Result<(), E>) -> Result<T, E>
Variant of and_then which always returns the (possibly
modified) original value on success. Read more
fn and_do(self, action: impl FnOnce(&mut T)) -> Result<T, E>
Variant of and_also where the action cannot fail. Read more