pub struct ErrorState {Show 13 fields
pub interaction: Interaction,
pub history: History,
pub error_count: i32,
pub help: Vec<&'static str>,
pub help_owned: Vec<String>,
pub use_err_help: bool,
pub deletions_allowed: bool,
pub set_box_allowed: bool,
pub no_new_control_sequence: bool,
pub old_setting: Option<Selector>,
pub file_line_error: bool,
pub halt_on_error: bool,
pub interrupt: bool,
}Expand description
Error-handling state.
Fields§
§interaction: InteractionThe interaction level.
history: HistoryThe run’s history.
error_count: i32Number of errors since the last paragraph end (error_count).
help: Vec<&'static str>Help lines for the next error, top line first.
help_owned: Vec<String>Owned help lines (used instead of help when non-empty).
use_err_help: boolWhether \errhelp should be shown instead of the help lines.
deletions_allowed: boolWhether deletions are allowed in error recovery.
set_box_allowed: boolWhether \setbox is allowed here.
no_new_control_sequence: boolno_new_control_sequence: lookups must not create new names.
old_setting: Option<Selector>The selector saved by begin_diagnostic.
file_line_error: boolWhether file:line:error style messages are requested.
halt_on_error: bool-halt-on-error: the first error ends the run.
interrupt: boolWhether a \par should not be inserted (OK_to_interrupt).
Trait Implementations§
Source§impl Debug for ErrorState
impl Debug for ErrorState
Auto Trait Implementations§
impl Freeze for ErrorState
impl RefUnwindSafe for ErrorState
impl Send for ErrorState
impl Sync for ErrorState
impl Unpin for ErrorState
impl UnsafeUnpin for ErrorState
impl UnwindSafe for ErrorState
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