[][src]Trait cl_traits::Insert

pub trait Insert {
    type Input;
    type Output;
    fn insert(&mut self, input: Self::Input) -> Self::Output;
}

See insert for more information.

Associated Types

type Input

Input

type Output

Output

Loading content...

Required methods

fn insert(&mut self, input: Self::Input) -> Self::Output

Inserts an Input element.

Loading content...

Implementations on Foreign Types

impl<T> Insert for Option<T>[src]

let mut opt = None;
cl_traits::Insert::insert(&mut opt, 3);
assert_eq!(opt, Some(3));

type Input = T

type Output = ()

Loading content...

Implementors

Loading content...