Clear the stack, dropping all values.
(&mut self)
| 397 | |
| 398 | /// Clear the stack, dropping all values. |
| 399 | fn stack_clear(&mut self) { |
| 400 | while self.stack_top > 0 { |
| 401 | let _ = self.stack_pop(); |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | /// Drain stack elements from `from` to the end, returning an iterator |
| 406 | /// that yields `Option<PyStackRef>` in forward order and shrinks the stack. |
no test coverage detected