Trait push_trait::PushRef [] [src]

pub trait PushRef<T: ?Sized> {
    type PushedOut;
    fn push_ref(&mut self, val: &T) -> Option<Self::PushedOut>;
}

Alternative to Push<&T>.

Associated Types

Type of value that gets pushed out, if any.

Required Methods

Adds the value to the collection.

Implementors