smol_bytes/utf8_bytes_mut/
ops.rs1use super::*;
2
3impl<I> core::ops::Index<I> for Utf8BytesMut
4where
5 I: core::slice::SliceIndex<str>,
6{
7 type Output = I::Output;
8
9 fn index(&self, index: I) -> &Self::Output {
10 &self.as_str()[index]
11 }
12}