is_backtrace_enabled

Function is_backtrace_enabled 

Source
pub const fn is_backtrace_enabled() -> bool
Expand description

Returns true if the backtrace feature is enabled.

This can be used to conditionally check whether backtraces are being captured.

ยงExample

use num_valid::validation::is_backtrace_enabled;

if is_backtrace_enabled() {
    println!("Backtraces are enabled - errors will include stack traces");
} else {
    println!("Backtraces are disabled for performance");
}