Struct lalrpop::Session
[−]
[src]
pub struct Session { pub heading: Style, pub ambig_symbols: Style, pub observed_symbols: Style, pub cursor_symbol: Style, pub unobserved_symbols: Style, pub terminal_symbol: Style, pub nonterminal_symbol: Style, pub hint_text: Style, // some fields omitted }
Various options to control debug output. Although this struct is technically part of LALRPOP's exported interface, it is not considered part of the semver guarantees as end-users are not expected to use it.
Fields
heading: Style
Applied to the heading in a message.
ambig_symbols: Style
Applied to symbols in an ambiguity report (where there is no cursor)
observed_symbols: Style
Applied to symbols before the cursor in a local ambiguity report
cursor_symbol: Style
Applied to symbols at the cursor in a local ambiguity report, if it is a non-terminal
unobserved_symbols: Style
Applied to symbols after the cursor in a local ambiguity report
terminal_symbol: Style
Applied to terminal symbols, in addition to the above styles
nonterminal_symbol: Style
Applied to nonterminal symbols, in addition to the above styles
hint_text: Style
Style to use when printing "Hint:"
Methods
impl Session
[src]
fn new() -> Session
fn color_config(&self) -> ColorConfig
fn set_color_config(&mut self, config: ColorConfig)
fn set_force_build(&mut self)
fn set_emit_comments(&mut self)
fn set_max_errors(&mut self, errors: usize)
fn set_log_level(&mut self, level: Level)
fn stop_after(&self, actual_errors: usize) -> bool
Indicates whether we should stop after actual_errors
number
of errors have been reported.
fn force_build(&self) -> bool
fn emit_comments(&self) -> bool
fn log<M>(&self, level: Level, message: M) where M: FnOnce() -> String
Trait Implementations
impl Clone for Session
[src]
fn clone(&self) -> Session
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more