Trait peg::ParseLiteral[][src]

pub trait ParseLiteral: Parse {
    pub fn parse_string_literal(
        &self,
        pos: usize,
        literal: &str
    ) -> RuleResult<()>; }

A parser input type supporting the "literal" syntax.

Required methods

pub fn parse_string_literal(&self, pos: usize, literal: &str) -> RuleResult<()>[src]

Attempt to match the literal string at pos, returning whether it matched or failed.

Loading content...

Implementations on Foreign Types

impl ParseLiteral for [u8][src]

impl ParseLiteral for str[src]

Loading content...

Implementors

Loading content...