Type Alias ModalResult

Source
pub type ModalResult<O, E = ContextError> = Result<O, ErrMode<E>>;
Expand description

Modal error reporting for Parser::parse_next

  • Ok(O) is the parsed value
  • Err(ErrMode<E>) is the error along with how to respond to it

By default, the error type (E) is ContextError.

When integrating into the result of the application, see

Aliased Type§

pub enum ModalResult<O, E = ContextError> {
    Ok(O),
    Err(ErrMode<E>),
}

Variants§

§1.0.0

Ok(O)

Contains the success value

§1.0.0

Err(ErrMode<E>)

Contains the error value

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.