pub trait SlicedArray {
// Required methods
fn slice_typed(&self, offset: usize, length: usize) -> Self
where Self: Sized;
unsafe fn slice_typed_unchecked(&self, offset: usize, length: usize) -> Self
where Self: Sized;
}Expand description
Utility trait to slice concrete arrow arrays whilst keeping their
concrete type. E.g. don’t return Box<dyn Array>.
Required Methods§
Sourcefn slice_typed(&self, offset: usize, length: usize) -> Selfwhere
Self: Sized,
fn slice_typed(&self, offset: usize, length: usize) -> Selfwhere
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".