pub trait VecExt<T> {
// Required methods
fn pushed_ref(&mut self, elem: T) -> &T;
fn pushed_mut(&mut self, elem: T) -> &mut T;
}
Expand description
Convenience methods for Vec.
Required Methods§
Sourcefn pushed_ref(&mut self, elem: T) -> &T
fn pushed_ref(&mut self, elem: T) -> &T
Push elem
and return a reference to it.
Sourcefn pushed_mut(&mut self, elem: T) -> &mut T
fn pushed_mut(&mut self, elem: T) -> &mut T
Push elem
and return a mutable reference to it.