pub struct Scanner<'a> { /* private fields */ }Implementations§
Source§impl<'a> Scanner<'a>
impl<'a> Scanner<'a>
pub fn token(&self) -> &Token
pub fn new(input: &'a str, fold_case: bool, prescan: bool) -> Self
pub fn has_token(&self, kind: &[TokenKind]) -> bool
pub fn has_next(&self) -> bool
pub fn next(&mut self)
pub fn scan_general_number(&mut self, exact: Option<bool>)
pub fn scan_character_literal(&mut self)
pub fn scan_signed_number(&mut self, radix: u32)
pub fn scan_ident(&mut self)
pub fn scan_hex_number(&mut self, max_digits: usize) -> Option<Fixnum>
Sourcepub fn scan_number(&mut self, radix: u32, neg: bool, dot: bool)
pub fn scan_number(&mut self, radix: u32, neg: bool, dot: bool)
Scans the next characters as an unsigned integer or floating point number.
pub fn scan_imaginary_part(&mut self, real_part: f64, neg: bool)
pub fn scan_string(&mut self)
pub fn scan_delimited_ident(&mut self)
pub fn scan_char_subsequence_until( &mut self, terminator: char, ) -> CharSubsequentResult
pub fn scan_hex_char(&mut self) -> Option<char>
pub fn signal(&mut self, error: LexicalError)
pub fn next_ch(&mut self)
pub fn skip_space(&mut self)
pub fn skip_comment(&mut self)
Auto Trait Implementations§
impl<'a> Freeze for Scanner<'a>
impl<'a> RefUnwindSafe for Scanner<'a>
impl<'a> Send for Scanner<'a>
impl<'a> Sync for Scanner<'a>
impl<'a> Unpin for Scanner<'a>
impl<'a> UnsafeUnpin for Scanner<'a>
impl<'a> UnwindSafe for Scanner<'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