pub trait Scanner {
Show 13 methods
fn expect<'a, P: Pattern<'a>>(&'a mut self, p: P) -> Result<usize, String>;
fn expect_whitespace<'a>(&'a mut self) -> Result<usize, String>;
fn has_next(&mut self) -> bool;
fn next(&mut self) -> Result<char, String>;
fn scan_str(&mut self, result: &mut str) -> Result<usize, String>;
fn scan_str_to<'a, P: Pattern<'a>>(
&'a mut self,
result: &mut str,
next: P
) -> Result<usize, String>;
fn scan_str_to_whitespace<'a>(
&'a mut self,
result: &mut str
) -> Result<usize, String>;
fn scan<T: FromStr>(&mut self) -> Result<T, String>;
fn scan_to<'a, T: FromStr, P: Pattern<'a>>(
&'a mut self,
next: P
) -> Result<T, String>;
fn scan_to_whitespace<'a, T: FromStr>(&'a mut self) -> Result<T, String>;
fn scan_de<T: Deserialize>(&mut self) -> Result<T, String> { ... }
fn scan_de_to<'a, T: Deserialize, P: Pattern<'a>>(
&'a mut self,
_next: P
) -> Result<T, String> { ... }
fn scan_de_to_whitespace<'a, T: Deserialize>(
&'a mut self
) -> Result<T, String> { ... }
}