Skip to main content

ErrorState

Struct ErrorState 

Source
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: Interaction

The interaction level.

§history: History

The run’s history.

§error_count: i32

Number 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: bool

Whether \errhelp should be shown instead of the help lines.

§deletions_allowed: bool

Whether deletions are allowed in error recovery.

§set_box_allowed: bool

Whether \setbox is allowed here.

§no_new_control_sequence: bool

no_new_control_sequence: lookups must not create new names.

§old_setting: Option<Selector>

The selector saved by begin_diagnostic.

§file_line_error: bool

Whether file:line:error style messages are requested.

§halt_on_error: bool

-halt-on-error: the first error ends the run.

§interrupt: bool

Whether a \par should not be inserted (OK_to_interrupt).

Trait Implementations§

Source§

impl Debug for ErrorState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ErrorState

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.