pub struct LineTokenizer<'a> {
pub prev: char,
pub cur: char,
pub next: char,
/* private fields */
}
Fields§
§prev: char
§cur: char
§next: char
Implementations§
Source§impl<'a> LineTokenizer<'a>
impl<'a> LineTokenizer<'a>
pub fn new(st: &'a str) -> Self
pub fn advance(&mut self)
pub fn next_is_digit(&self) -> bool
pub fn next_is_letter(&self) -> bool
pub fn next_is_lowercase_letter(&self) -> bool
pub fn next_is_uppercase_letter(&self) -> bool
pub fn next_is_hex(&self) -> bool
pub fn advance_with_cur(&mut self)
pub fn advance_with_prev(&mut self)
pub fn keyword(&mut self, chunk: &mut Vec<char>, word: &str) -> bool
Auto Trait Implementations§
impl<'a> Freeze for LineTokenizer<'a>
impl<'a> RefUnwindSafe for LineTokenizer<'a>
impl<'a> Send for LineTokenizer<'a>
impl<'a> Sync for LineTokenizer<'a>
impl<'a> Unpin for LineTokenizer<'a>
impl<'a> UnwindSafe for LineTokenizer<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more