Function string_from_slice

Source
pub(crate) fn string_from_slice(
    slice: &[u8],
    offset: usize,
    range: Range<usize>,
) -> Result<&str, ArrowError>
Expand description

Helper to get a &str from a slice at the given offset and range, or an error if it contains invalid UTF-8 data.