pub trait Push<T> {
// Required method
fn push(&mut self, item: T);
// Provided method
fn extend(&mut self, iter: impl IntoIterator<Item = T>) { ... }
}
Expand description
A type that can accept items of type T
.
Required Methods§
Provided Methods§
sourcefn extend(&mut self, iter: impl IntoIterator<Item = T>)
fn extend(&mut self, iter: impl IntoIterator<Item = T>)
Pushes elements of an iterator onto self
.
Object Safety§
This trait is not object safe.