Trait ProstOptionExt

Source
pub trait ProstOptionExt {
    type Item;

    // Required method
    fn get_or_default(&self) -> &Self::Item;
}

Required Associated Types§

Required Methods§

Source

fn get_or_default(&self) -> &Self::Item

Implementations on Foreign Types§

Source§

impl<T> ProstOptionExt for Option<T>
where T: ProstLazyDefault + 'static,

Implementors§