pub trait PushFront<T>: PushBack<T> {
// Required method
fn push_front(&mut self, val: T) -> Option<Self::PushedOut>;
}Expand description
Required Methods§
Sourcefn push_front(&mut self, val: T) -> Option<Self::PushedOut>
fn push_front(&mut self, val: T) -> Option<Self::PushedOut>
Pushes the value onto the front, yielding the value that was pushed out, if any.