pub enum DebugMode {
Off,
Warn,
Abort,
}Expand description
How a backend run loop should react to a localized NaN/Inf.
Variants§
Off
Scanning off — the whole epilogue is skipped.
Warn
Print the first bad value’s diagnostic to stderr and keep running.
Abort
Print and then panic on the first bad value (fail-fast, like JAX
jax_debug_nans), so a backtrace points at the call site.
Trait Implementations§
impl Copy for DebugMode
impl Eq for DebugMode
impl StructuralPartialEq for DebugMode
Auto Trait Implementations§
impl Freeze for DebugMode
impl RefUnwindSafe for DebugMode
impl Send for DebugMode
impl Sync for DebugMode
impl Unpin for DebugMode
impl UnsafeUnpin for DebugMode
impl UnwindSafe for DebugMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more