(&self, chars: OptionalOption<Self>)
| 622 | } |
| 623 | |
| 624 | pub fn rstrip(&self, chars: OptionalOption<Self>) -> &[u8] { |
| 625 | self.elements.py_strip( |
| 626 | chars, |
| 627 | |s, chars| s.trim_end_with(|c| chars.contains(&(c as u8))), |
| 628 | |s| s.trim_end(), |
| 629 | ) |
| 630 | } |
| 631 | |
| 632 | // new in Python 3.9 |
| 633 | pub fn removeprefix(&self, prefix: Self) -> Vec<u8> { |
no test coverage detected