Trait push_trait::Push [] [src]

pub trait Push<T> {
    type PushedOut;
    fn push(&mut self, val: T) -> Option<Self::PushedOut>;
}

A mutable collection onto which items can be added to an arbitrary location in the collection.

Associated Types

Type of value that gets pushed out, if any.

For some collections, a value may be "pushed out" after a value is pushed.

Required Methods

Adds the value to the collection.

Implementors