Trait push_trait::InsertRef
[−]
[src]
pub trait InsertRef<T: ?Sized>: PushRefBack<T> { fn insert_ref(&mut self, index: usize, val: &T) -> Option<Self::PushedOut>; }
Alternative to PushOrdered<&T>
.
Required Methods
fn insert_ref(&mut self, index: usize, val: &T) -> Option<Self::PushedOut>
Inserts the value at a position in the collection.