Skip to main content

IntoArrayRef

Trait IntoArrayRef 

Source
pub trait IntoArrayRef: Array + Sized {
    // Provided method
    fn into_array_ref(self) -> ArrayRef { ... }
}
Expand description

Wraps a concrete array in an ArrayRef.

use astrs_data::array::{Array, BooleanArray, IntoArrayRef};

let column = BooleanArray::from_values([true, false]).into_array_ref();
assert_eq!(column.len(), 2);

Provided Methods§

Source

fn into_array_ref(self) -> ArrayRef

Moves self into a shared, dynamically typed column.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§