Trait yarpl::Expect [−][src]
pub trait Expect: Debug + Clone + Any + 'static { type Target; fn expect_from(parser: &mut Parser) -> Result<Self::Target>; }
Expand description
Implements how a Parser
should consume its input to yield Self::Target
.
Associated Types
Required methods
fn expect_from(parser: &mut Parser) -> Result<Self::Target>
[src]
fn expect_from(parser: &mut Parser) -> Result<Self::Target>
[src]What a parser will call to advance itself.