1 2 3 4 5 6 7 8 9 10 11 12 13
use super::*; impl<S, I> core::ops::Index<I> for Utf8Bytes<S> where RawBytes<S>: ImmutableStorage, I: core::slice::SliceIndex<str>, { type Output = I::Output; fn index(&self, index: I) -> &Self::Output { &self.as_str()[index] } }