(&mut self)
| 381 | |
| 382 | #[inline] |
| 383 | pub fn as_mut_slice(&mut self) -> &mut Wtf8 { |
| 384 | // Safety: `Wtf8` doesn't expose any way to mutate the bytes that would |
| 385 | // cause them to change from well-formed UTF-8 to ill-formed UTF-8, |
| 386 | // which would break the assumptions of the `is_known_utf8` field. |
| 387 | unsafe { Wtf8::from_mut_bytes_unchecked(&mut self.bytes) } |
| 388 | } |
| 389 | |
| 390 | /// Reserves capacity for at least `additional` more bytes to be inserted |
| 391 | /// in the given `Wtf8Buf`. |
no outgoing calls
no test coverage detected