Trait array_tool::vec::Shift [−][src]
Expand description
Removes, or Adds, the first element of self.
Required methods
Removes and returns the first item from the vector
Example
use array_tool::vec::Shift;
let mut x = vec![0,1,2,3];
assert_eq!(x.shift(), Some(0));
assert_eq!(x, vec![1,2,3]);