Insert

Trait Insert 

Source
pub trait Insert {
    type Error;
    type Input;

    // Required method
    fn insert(&mut self, input: Self::Input) -> Result<(), Self::Error>;
}
Expand description

See Insert::insert for more information.

Required Associated Types§

Source

type Error

Error

Source

type Input

Input

Required Methods§

Source

fn insert(&mut self, input: Self::Input) -> Result<(), Self::Error>

Inserts an Input element.

Implementations on Foreign Types§

Source§

impl<T> Insert for Option<T>

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

type Error = Error

Source§

type Input = T

Source§

fn insert(&mut self, input: Self::Input) -> Result<(), Self::Error>

Source§

impl<T> Insert for &mut T
where T: Insert,

Source§

type Error = <T as Insert>::Error

Source§

type Input = <T as Insert>::Input

Source§

fn insert(&mut self, input: Self::Input) -> Result<(), Self::Error>

Implementors§