pub(crate) fn slice_from_slice<I: SliceIndex<[u8]> + Clone + Debug>( bytes: &[u8], index: I, ) -> Result<&I::Output, ArrowError>