use std::{
ops::{Deref, Index},
slice::SliceIndex,
};
use crate::JustString;
impl<I> Index<I> for JustString<'_>
where
I: SliceIndex<str>,
{
type Output = <I as SliceIndex<str>>::Output;
fn index(&self, index: I) -> &Self::Output {
&self.deref()[index]
}
}