Trait peg_runtime::ParseLiteral
source · pub trait ParseLiteral: Parse {
// Required method
fn parse_string_literal(&self, pos: usize, literal: &str) -> RuleResult<()>;
}
Expand description
A parser input type supporting the "literal"
syntax.
Required Methods§
sourcefn parse_string_literal(&self, pos: usize, literal: &str) -> RuleResult<()>
fn parse_string_literal(&self, pos: usize, literal: &str) -> RuleResult<()>
Attempt to match the literal
string at pos
, returning whether it
matched or failed.