(&mut self, value: T)
| 37 | |
| 38 | #[inline(always)] |
| 39 | pub(crate) fn push(&mut self, value: T) -> Result<(), Trap> { |
| 40 | if !self.ensure_capacity_for(self.data.len() + 1) { |
| 41 | cold_path(); |
| 42 | return Err(Trap::ValueStackOverflow); |
| 43 | } |
| 44 | |
| 45 | self.data.push(value); |
| 46 | Ok(()) |
| 47 | } |
| 48 | |
| 49 | #[inline(always)] |
| 50 | pub(crate) fn pop(&mut self) -> T { |
no test coverage detected