(&mut self, new_len: usize)
| 501 | /// or if `new_len` is not a code point boundary. |
| 502 | #[inline] |
| 503 | pub fn truncate(&mut self, new_len: usize) { |
| 504 | assert!(is_code_point_boundary(self, new_len)); |
| 505 | self.bytes.truncate(new_len) |
| 506 | } |
| 507 | |
| 508 | /// Inserts a codepoint into this `Wtf8Buf` at a byte position. |
| 509 | #[inline] |
no outgoing calls
no test coverage detected