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§
Source§impl<LB> SourceLexer<LB>where
LB: LexerBase,
impl<LB> SourceLexer<LB>where
LB: LexerBase,
Trait Implementations§
Source§impl<LB> LexerBase for SourceLexer<LB>where
LB: LexerBase,
impl<LB> LexerBase for SourceLexer<LB>where
LB: LexerBase,
Source§fn next_token(&mut self) -> Token
fn next_token(&mut self) -> Token
Goes forward to the next token in the stream, if available.
Source§fn 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)
Auto Trait Implementations§
impl<LB> Freeze for SourceLexer<LB>
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§
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