[][src]Struct lib_ruby_parser::Lexer

pub struct Lexer {
    pub debug: bool,
    pub lex_state: LexState,
    pub cond: StackState,
    pub cmdarg: StackState,
    pub static_env: StaticEnvironment,
    // some fields omitted
}

Fields

debug: boollex_state: LexStatecond: StackStatecmdarg: StackStatestatic_env: StaticEnvironment

Implementations

impl Lexer[src]

pub fn new(bytes: &[u8], name: &str, decoder: CustomDecoder) -> Self[src]

pub fn set_debug(&mut self, debug: bool)[src]

pub fn tokenize_until_eof(&mut self) -> Vec<Token>[src]

pub fn line_col_for_loc(&self, loc: usize) -> Option<(usize, usize)>[src]

Trait Implementations

impl Clone for Lexer[src]

impl Debug for Lexer[src]

impl Default for Lexer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.