Trait arrow_string::like::StringArrayType

source ·
pub trait StringArrayType<'a>: ArrayAccessor<Item = &'a str> + Sized {
    // Required methods
    fn is_ascii(&self) -> bool;
    fn iter(&self) -> ArrayIter<Self>;
}
Expand description

A trait for Arrow String Arrays, currently three types are supported:

  • StringArray
  • LargeStringArray
  • StringViewArray

This trait helps to abstract over the different types of string arrays so that we don’t need to duplicate the implementation for each type.

Required Methods§

source

fn is_ascii(&self) -> bool

Returns true if all data within this string array is ASCII

source

fn iter(&self) -> ArrayIter<Self>

Constructs a new iterator

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> StringArrayType<'a> for &'a StringViewArray

source§

fn is_ascii(&self) -> bool

source§

fn iter(&self) -> ArrayIter<Self>

source§

impl<'a, O: OffsetSizeTrait> StringArrayType<'a> for &'a GenericStringArray<O>

source§

fn is_ascii(&self) -> bool

source§

fn iter(&self) -> ArrayIter<Self>

Implementors§