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§
Required Methods§
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));
impl<T> Insert for Option<T>
let mut opt = None;
cl_aux::Insert::insert(&mut opt, 3);
assert_eq!(opt, Some(3));