use crate::utils::*;
pub(crate) const NAME: &[&str] = &["Index"];
pub(crate) fn derive(data: &Data) -> Result<TokenStream> {
derive_trait(data, parse_quote!(::core::ops::Index), None, parse_quote! {
trait Index<__Idx> {
type Output;
#[inline]
fn index(&self, index: __Idx) -> &Self::Output;
}
})
}