Skip to main content

ParseV1

Trait ParseV1 

Source
pub trait ParseV1 {
    // Required method
    fn parse_v1<F, O>(&mut self, f: F) -> ModalResult<O>
       where for<'a> F: FnOnce(&mut Parser<'a>) -> ModalResult<O>;
}

Required Methods§

Source

fn parse_v1<F, O>(&mut self, f: F) -> ModalResult<O>
where for<'a> F: FnOnce(&mut Parser<'a>) -> ModalResult<O>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<S, State> ParseV1 for Stateful<S, State>
where S: ParseV1,

Source§

fn parse_v1<F, O>(&mut self, f: F) -> ModalResult<O>
where for<'a> F: FnOnce(&mut Parser<'a>) -> ModalResult<O>,

Implementors§

Source§

impl<'a> ParseV1 for Parser<'a>