pub trait PeekableTokens {
Show 13 methods
// Required methods
fn peek_or_err(&mut self) -> Result<&Token, ErrorKind>;
fn peek_is_text_eq(&mut self, text: &str) -> bool;
fn peek_is_text_eq_ignore_case(&mut self, text: &str) -> bool;
fn peek_is_separator_eq(&mut self, separator: char) -> bool;
fn next_or_err(&mut self) -> Result<Token, ErrorKind>;
fn next_text_or_err(&mut self) -> Result<String, ErrorKind>;
fn next_text_eq_ignore_case_or_err(
&mut self,
text: &str
) -> Result<Token, ErrorKind>;
fn next_text_eq_any_ignore_case_or_err(
&mut self,
texts: &[&str]
) -> Result<Token, ErrorKind>;
fn next_if_separator_and_eq(
&mut self,
separator: char
) -> Result<Token, ErrorKind>;
// Provided methods
fn peek_is_text_and_satisfies<F>(&mut self, probe: F) -> bool
where F: FnOnce(&str) -> bool { ... }
fn next_is_text_and_eq_ignore_case(&mut self, text: &str) -> bool { ... }
fn next_separator_eq_or_err(
&mut self,
separator: char
) -> Result<(), ErrorKind> { ... }
fn next_is_separator_and_eq(&mut self, separator: char) -> bool { ... }
}