Trait NameFallback

Source
pub trait NameFallback {
    // Required method
    fn resolve(self) -> Option<String>;
}
Expand description

Helper trait to define fallback values passed to NameBuilder::or or NameBuilder::or_else

Required Methods§

Source

fn resolve(self) -> Option<String>

Create the fallback value.

Implementations on Foreign Types§

Source§

impl NameFallback for &String

Source§

impl<X> NameFallback for &Option<X>
where X: Display,

Source§

impl<X> NameFallback for Option<X>
where X: Display,

Implementors§