Skip to main content

ProstOptionExt

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

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

Implementors§