Trait polars_arrow::array::iterator::ArrayAccessor
source · pub unsafe trait ArrayAccessor<'a>: Sealed {
type Item: 'a;
// Required methods
unsafe fn value_unchecked(&'a self, index: usize) -> Self::Item;
fn len(&self) -> usize;
}
Expand description
Sealed trait representing access to a value of an array.
§Safety
Implementers of this trait guarantee that
value_unchecked
is safe when called up to len
Required Associated Types§
Required Methods§
sourceunsafe fn value_unchecked(&'a self, index: usize) -> Self::Item
unsafe fn value_unchecked(&'a self, index: usize) -> Self::Item
§Safety
The index must be in-bounds in the array.