Trait re_data_store::ArrayExt
source · pub trait ArrayExt: Array {
// Required methods
fn get_child_length(&self, child_nr: usize) -> usize;
fn clean_for_polars(&self) -> Box<dyn Array>;
}Required Methods§
sourcefn get_child_length(&self, child_nr: usize) -> usize
fn get_child_length(&self, child_nr: usize) -> usize
Returns the length of the child array at the given index.
- Panics if
selfis not aListArray<i32>. - Panics if
child_nris out of bounds.
sourcefn clean_for_polars(&self) -> Box<dyn Array>
fn clean_for_polars(&self) -> Box<dyn Array>
Create a new Array which avoids problematic types for polars.
This does the following conversion:
FixedSizeList->ListUnion->Struct
Nested types are expanded and cleaned recursively
Implementations on Foreign Types§
source§impl ArrayExt for dyn Array
impl ArrayExt for dyn Array
source§fn get_child_length(&self, child_nr: usize) -> usize
fn get_child_length(&self, child_nr: usize) -> usize
Return the length of the first child.
Panics
Panics if Self is not a ListArray<i32>, or if the array is empty (no children).
source§fn clean_for_polars(&self) -> Box<dyn Array>
fn clean_for_polars(&self) -> Box<dyn Array>
Create a new Array which avoids problematic types for polars.
This does the following conversion:
FixedSizeList->ListUnion->Struct
Nested types are expanded and cleaned recursively