pub trait Fallback {
// Required method
fn fallback() -> Self;
}Expand description
A value the host can always fall back to when a closure it calls fails, so the failure is reported instead of stopping the program.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".