Accept a borrowed key-value pair at the beginning (from left sibling)
(&mut self, key: K, value: V)
| 476 | |
| 477 | /// Accept a borrowed key-value pair at the beginning (from left sibling) |
| 478 | pub fn accept_from_left(&mut self, key: K, value: V) { |
| 479 | self.keys.insert(0, key); |
| 480 | self.values.insert(0, value); |
| 481 | } |
| 482 | |
| 483 | /// Accept a borrowed key-value pair at the end (from right sibling) |
| 484 | pub fn accept_from_right(&mut self, key: K, value: V) { |
no test coverage detected