pub trait Append: Sized + Clear {
// Required method
fn append(&mut self, val: &mut Self);
}Expand description
A trait for moving data from one collection into another without freeing resources.
Conceptually, an append is equivalent to a push, with the caveat that the data is “moved
out” of the pushed collection instead of being consumed. This allows reuse of the pushed
collection’s resources.
Required Methods§
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.