Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pub fn pop(&mut self) -> Option<T> {
- if self.is_empty() {
- None
- } else {
- self.len -= 1;
- Some( self.array[self.len] ) // error: cannot move out of type `[T; 8]`, a non-copy fixed-size array
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement