pub(crate) fn string_from_slice( slice: &[u8], range: Range<usize>, ) -> Result<&str, ArrowError>
Helper to get a &str from a slice based on range, if it’s valid or an error otherwise