pub struct Settings { /* private fields */ }
Expand description

Configuration for panic printing.

Implementations

Alias for Settings::default.

Common settings for debugging.

In release builds this is new, in debug builds this is debug.

Controls the “greeting” message of the panic.

Defaults to "The application panicked (crashed)".

Controls the verbosity level.

Defaults to Verbosity::get_env().

Controls the backtrace position.

Defaults to true which causes the backtrace to be printed above the panic.

Controls the most-recent-first behavior.

Defaults to true which causes the backtrace to be printed above the panic.

Append the line number as suffix to the filename.

Defaults to false which causes line numbers to be rendered separately. Specifically this renders File "foo.rs:42" instead of File "foo.rs", line 42 which lets some terminals open the editor at the right location on click.

Consumes the settings and creates a panic handler.

Installs the panic handler.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.