pub struct LexStack {
pub dbparens: bool,
pub isfirstln: bool,
pub isfirstch: bool,
pub lexflags: LexFlags,
pub tok: LexTok,
pub tokstr: Option<String>,
pub lexbuf_data: String,
pub lexbuf_siz: usize,
pub lexstop: bool,
pub toklineno: u64,
}Expand description
Saved lexical state for nested-context handling. Direct port of
struct lex_stack declared in zsh/Src/zsh.h and used by
zsh/Src/lex.c:215-239 (lex_context_save) and lex.c:244-262
(lex_context_restore). Used when entering command substitution,
here-docs, or eval where the outer lexer state must be pushed and
restored after the inner parse completes.
Fields§
§dbparens: bool§isfirstln: bool§isfirstch: bool§lexflags: LexFlags§tok: LexTok§tokstr: Option<String>§lexbuf_data: String§lexbuf_siz: usize§lexstop: bool§toklineno: u64Trait Implementations§
Auto Trait Implementations§
impl Freeze for LexStack
impl RefUnwindSafe for LexStack
impl Send for LexStack
impl Sync for LexStack
impl Unpin for LexStack
impl UnsafeUnpin for LexStack
impl UnwindSafe for LexStack
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