pub trait Acceptor<'a> {
// Required methods
fn accept(self, expected: &str) -> bool;
fn span_fn<M>(self, matcher: &mut M) -> Option<&'a str>
where M: FnMut(char) -> bool;
fn span<P: Spanner>(self, spanner: &mut P) -> Option<&'a str>;
}
Required Methods§
fn accept(self, expected: &str) -> bool
fn span_fn<M>(self, matcher: &mut M) -> Option<&'a str>
fn span<P: Spanner>(self, spanner: &mut P) -> Option<&'a str>
Object Safety§
This trait is not object safe.