Skip to main content

OptionContainer

Trait OptionContainer 

Source
pub trait OptionContainer<T> {
    // Required methods
    fn push(&mut self, val: T);
    fn get<'a>(&'a self) -> impl Iterator<Item = &'a T>
       where T: 'a;
}

Required Methods§

Source

fn push(&mut self, val: T)

Source

fn get<'a>(&'a self) -> impl Iterator<Item = &'a T>
where T: 'a,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T> OptionContainer<T> for Option<T>

Source§

fn push(&mut self, val: T)

Source§

fn get<'a>(&'a self) -> impl Iterator<Item = &'a T>
where T: 'a,

Source§

impl<T> OptionContainer<T> for Vec<T>

Source§

fn push(&mut self, val: T)

Source§

fn get<'a>(&'a self) -> impl Iterator<Item = &'a T>
where T: 'a,

Implementors§