pub struct HandlerFlags {
pub can_emit_warnings: bool,
pub treat_err_as_bug: bool,
pub dont_buffer_diagnostics: bool,
pub report_delayed_bugs: bool,
pub external_macro_backtrace: bool,
}
If false, warning-level lints are suppressed.
(rustc: see --allow warnings
and --cap-lints
)
If true, error-level diagnostics are upgraded to bug-level.
(rustc: see -Z treat-err-as-bug
)
If true, immediately emit diagnostics that would otherwise be buffered.
(rustc: see -Z dont-buffer-diagnostics
and -Z treat-err-as-bug
)
If true, immediately print bugs registered with delay_span_bug
.
(rustc: see -Z report-delayed-bugs
)
show macro backtraces even for non-local macros.
(rustc: see -Z external-macro-backtrace
)
Returns the "default value" for a type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Create an error for a missing method specialization. Defaults to panicking with type, trait & method names. S
is the encoder/decoder state type, T
is the type being encoded/decoded, and the arguments are the names of the trait and method that should've been overridden. Read more