Struct kconfig_parser::lex::source_lexer::SourceLexer
source · pub struct SourceLexer<LB>where
LB: LexerBase,{ /* private fields */ }
Expand description
The source lexer allows the source directive to be used to load additional sources as part of the (currently) loaded Kconfig file.
Implementations
sourceimpl<LB> SourceLexer<LB>where
LB: LexerBase,
impl<LB> SourceLexer<LB>where
LB: LexerBase,
Trait Implementations
sourceimpl<LB> LexerBase for SourceLexer<LB>where
LB: LexerBase,
impl<LB> LexerBase for SourceLexer<LB>where
LB: LexerBase,
sourcefn next_token(&mut self) -> Token
fn next_token(&mut self) -> Token
Goes forward to the next token in the stream, if available.
sourcefn current_stream(&self) -> Option<String>
fn current_stream(&self) -> Option<String>
Returns the current stream’s name, if any (for example, the normal
lexer does know this value) Read more
Auto Trait Implementations
impl<LB> RefUnwindSafe for SourceLexer<LB>where
LB: RefUnwindSafe,
impl<LB> Send for SourceLexer<LB>where
LB: Send,
impl<LB> Sync for SourceLexer<LB>where
LB: Sync,
impl<LB> Unpin for SourceLexer<LB>where
LB: Unpin,
impl<LB> UnwindSafe for SourceLexer<LB>where
LB: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more