Skip to main content

ErrorType

Trait ErrorType 

Source
pub trait ErrorType {
    type Error;
}
Expand description

Defines the error type for parser actions.

Implement this once on your action type, then use Self::Error in all Action::build return types.

struct Eval;
impl gazelle::ErrorType for Eval {
    type Error = core::convert::Infallible;
}

Required Associated Types§

Implementors§