new in Python 3.9
(&self, suffix: Self)
| 640 | |
| 641 | // new in Python 3.9 |
| 642 | pub fn removesuffix(&self, suffix: Self) -> Vec<u8> { |
| 643 | self.elements |
| 644 | .py_removesuffix(&suffix.elements, suffix.elements.len(), |s, p| { |
| 645 | s.ends_with(p) |
| 646 | }) |
| 647 | .to_vec() |
| 648 | } |
| 649 | |
| 650 | pub fn split<F>( |
| 651 | &self, |