fn guarded<T>(f: impl FnOnce() -> T) -> Option<T>Expand description
Run something that may panic (GPU driver, pre-render, a panel widget) without taking the editor down — same policy as the decoder threads. None = it panicked. ponytail: the panic message goes to the default hook (stderr); the caller toasts and degrades.