/** Push element x onto stack. */
Push element x onto stack.
Push element x onto stack .
pub fn push(&mut self, x: i32) {
        self.queue.push_back(x);
        for _ in 0..self.queue.len() - 1 {
            let x = self.queue.pop_front().unwrap();
            self.queue.push_back(x);
        }
    }
pub fn push ( & mut self , x : i32 ) { self . queue . push_back ( x ) ; for _ in 0 .. self . queue . len ( ) - 1 { let x = self . queue . pop_front ( ) . unwrap ( ) ; self . queue . push_back ( x ) ; } }
Push element x onto stack.
Push element x onto stack .
&mut self
x
i32