pub fn is_debug_enabled() -> boolExpand description
Returns true if the SPARSEIR_DEBUG environment variable enables debug
diagnostics.
Debug diagnostics are enabled only when SPARSEIR_DEBUG is 1, true,
yes or on, in any letter case, the same values pylibsparseir accepts.
Any other value, including 0, false, an empty string, or an accepted
value with surrounding whitespace, leaves them disabled, as does an unset
variable.
The variable is read on every call. debug_warn!
and the debug macros of sparse-ir-capi all use this function.