Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
StringArrayType in datafusion::common::arrow::array::array - Rust
[go: Go Back, main page]

Trait StringArrayType

Source
pub trait StringArrayType<'a>: Sized + ArrayAccessor<Item = &'a str> {
    // 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§