Skip to main content

PResult

Type Alias PResult 

Source
pub type PResult<'i, T> = ModalResult<T, ParseStack<'i>>;
Expand description

Return type alias for parsers that uses the ParseStack error type.

Aliased Type§

pub enum PResult<'i, T> {
    Ok(T),
    Err(ErrMode<ParseStack<'i>>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ErrMode<ParseStack<'i>>)

Contains the error value