ParserExt

Trait ParserExt 

Source
pub trait ParserExt<O>: Parser<Token, O> + Sized {
    // Required methods
    fn round_delimited(self) -> TokenDelim<Self>;
    fn square_delimited(self) -> TokenDelim<Self>;
    fn curly_delimited(self) -> TokenDelim<Self>;
    fn arrow_delimited(self) -> TokenDelim<Self>;
}
Expand description

Utility trait for chumsky’s Parser

Provides methods for wrapping Token groups in bracket delimiters

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<O, P> ParserExt<O> for P
where P: Parser<Token, O, Error = Simple<Token>>,