Trait AppendBack

Source
pub trait AppendBack: Append {
    // Provided method
    fn append_back(&mut self, val: &mut Self) { ... }
}
Expand description

A trait for moving data from one collection onto the back of another without freeing resources.

This trait is the PushBack analogue of Append.

Provided Methods§

Source

fn append_back(&mut self, val: &mut Self)

Moves data out of val and onto the back of this collection.

Invoking this method should make val empty without freeing any resources.

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 AppendBack for String

Source§

impl AppendBack for OsString

Source§

impl<T> AppendBack for LinkedList<T>

Source§

impl<T> AppendBack for VecDeque<T>

Source§

impl<T> AppendBack for Vec<T>

Implementors§