pub trait Extend<IN> {
type Error;
// Required method
fn extend(
&mut self,
into_iter: impl IntoIterator<Item = IN>,
) -> Result<(), Self::Error>;
}Expand description
See Extend::extend for more information.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<T> Extend<T> for Option<T>
let mut opt = None;
cl_aux::Extend::extend(&mut opt, [3]).unwrap();
assert_eq!(opt, Some(3));
impl<T> Extend<T> for Option<T>
let mut opt = None;
cl_aux::Extend::extend(&mut opt, [3]).unwrap();
assert_eq!(opt, Some(3));