pest::impl_rdp! [] [src]

macro_rules! impl_rdp {
    ( $name:ident ) => { ... };
}

A macro useful for implementing the Rdp trait.

Examples


impl_rdp!(MyRdp);

let input = Box::new(StringInput::new("asdasdf"));
let mut parser = MyRdp::new(input);

assert!(parser.matches("asd"));
assert!(parser.matches("asdf"));