Trait FallingBackTo

Source
pub trait FallingBackTo {
    // Required method
    fn falling_back_to(self, fallback: &Self) -> Self;
}

Required Methods§

Source

fn falling_back_to(self, fallback: &Self) -> Self

Use values from self if present, otherwise use those from fallback.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§