pub trait TypedArrayRef<V: VTable>: AsRef<ArrayRef> + Deref<Target = V::TypedArrayData> {
// Provided methods
fn to_owned(&self) -> Array<V> { ... }
fn slots(&self) -> &[Option<ArrayRef>] { ... }
fn dtype(&self) -> &DType { ... }
fn len(&self) -> usize { ... }
fn is_empty(&self) -> bool { ... }
}Expand description
Shared bound for helpers that should work over both owned Array<V> and borrowed
ArrayView<V>.
Extension traits use this to share typed array logic while still exposing the backing
ArrayRef and the encoding-specific VTable::TypedArrayData.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".