[][src]Trait peg::ParseLiteral

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

A parser input type supporting the "literal" syntax.

Required methods

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

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...