[][src]Trait kg_diag::CharReader

pub trait CharReader: Reader {
    fn next_char(&mut self) -> ParseResult<Option<char>>;
fn peek_char(&mut self, lookahead: usize) -> ParseResult<Option<char>>;
fn peek_char_pos(
        &mut self,
        lookahead: usize
    ) -> ParseResult<Option<(char, Position)>>;
fn skip_chars(&mut self, skip: usize) -> ParseResult<()>;
fn match_str(&mut self, s: &str) -> ParseResult<bool>;
fn match_str_term(
        &mut self,
        s: &str,
        f: &dyn Fn(Option<char>) -> bool
    ) -> ParseResult<bool>;
fn match_str_term_mut(
        &mut self,
        s: &str,
        f: &mut dyn FnMut(Option<char>) -> bool
    ) -> ParseResult<bool>; fn match_char(&mut self, c: char) -> ParseResult<bool> { ... }
fn skip_whitespace(&mut self) -> ParseResult<()> { ... }
fn skip_whitespace_nonl(&mut self) -> ParseResult<()> { ... }
fn scan(&mut self, f: &dyn Fn(char) -> bool) -> ParseResult<Cow<str>> { ... }
fn scan_mut(
        &mut self,
        f: &mut dyn FnMut(char) -> bool
    ) -> ParseResult<Cow<str>> { ... }
fn skip_until(&mut self, f: &dyn Fn(char) -> bool) -> ParseResult<()> { ... }
fn skip_until_mut(
        &mut self,
        f: &mut dyn FnMut(char) -> bool
    ) -> ParseResult<()> { ... }
fn skip_while(&mut self, f: &dyn Fn(char) -> bool) -> ParseResult<()> { ... }
fn skip_while_mut(
        &mut self,
        f: &mut dyn FnMut(char) -> bool
    ) -> ParseResult<()> { ... } }

Required methods

fn next_char(&mut self) -> ParseResult<Option<char>>

fn peek_char(&mut self, lookahead: usize) -> ParseResult<Option<char>>

fn peek_char_pos(
    &mut self,
    lookahead: usize
) -> ParseResult<Option<(char, Position)>>

fn skip_chars(&mut self, skip: usize) -> ParseResult<()>

fn match_str(&mut self, s: &str) -> ParseResult<bool>

fn match_str_term(
    &mut self,
    s: &str,
    f: &dyn Fn(Option<char>) -> bool
) -> ParseResult<bool>

fn match_str_term_mut(
    &mut self,
    s: &str,
    f: &mut dyn FnMut(Option<char>) -> bool
) -> ParseResult<bool>

Loading content...

Provided methods

fn match_char(&mut self, c: char) -> ParseResult<bool>

fn skip_whitespace(&mut self) -> ParseResult<()>

fn skip_whitespace_nonl(&mut self) -> ParseResult<()>

fn scan(&mut self, f: &dyn Fn(char) -> bool) -> ParseResult<Cow<str>>

fn scan_mut(&mut self, f: &mut dyn FnMut(char) -> bool) -> ParseResult<Cow<str>>

fn skip_until(&mut self, f: &dyn Fn(char) -> bool) -> ParseResult<()>

fn skip_until_mut(&mut self, f: &mut dyn FnMut(char) -> bool) -> ParseResult<()>

fn skip_while(&mut self, f: &dyn Fn(char) -> bool) -> ParseResult<()>

fn skip_while_mut(&mut self, f: &mut dyn FnMut(char) -> bool) -> ParseResult<()>

Loading content...

Implementors

impl<'a> CharReader for MemCharReader<'a>[src]

Loading content...