PResult

Type Alias PResult 

Source
pub type PResult<'a, T> = Result<T, DiagBuilder<'a, ErrorGuaranteed>>;
Expand description

Parser result type. This is a shorthand for Result<T, PErr<'a>>.

Aliased Type§

pub enum PResult<'a, T> {
    Ok(T),
    Err(DiagBuilder<'a, ErrorGuaranteed>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(DiagBuilder<'a, ErrorGuaranteed>)

Contains the error value