pub trait Shift<T> {
// Required methods
fn shift(&mut self) -> Option<T>;
fn unshift(&mut self, other: T);
}
Expand description
Removes, or Adds, the first element of self.
pub trait Shift<T> {
// Required methods
fn shift(&mut self) -> Option<T>;
fn unshift(&mut self, other: T);
}
Removes, or Adds, the first element of self.