Trait push_trait::Append [] [src]

pub trait Append<T: ?Sized + CapacityMut>: PushBack<T> {
    fn append(&mut self, val: &mut T) -> Option<Self::PushedOut>;
}

Alternative to Push<&mut T>.

Required Methods

Moves data out of val and into this collection.

Invoking this method should make val empty while retaining its capacity.

Implementors