Skip to main content

ChunkedArraySlotsExt

Trait ChunkedArraySlotsExt 

Source
pub trait ChunkedArraySlotsExt<'a>: BorrowArraySlots<'a, Chunked> {
    // Provided methods
    fn chunk_offsets(self) -> &'a ArrayRef { ... }
    fn chunks(self) -> SlotSlice<'a> { ... }
    fn slots_view(self) -> ChunkedSlotsView<'a> { ... }
}
Expand description

Typed slot accessors for Chunked arrays.

Implemented for &'a T where T: TypedArrayRef, and for ArrayView<'a, _>. The accessors take self by value and return references borrowed for 'a, so slots read from a temporary ArrayView outlive the view.

Provided Methods§

Source

fn chunk_offsets(self) -> &'a ArrayRef

Returns the chunk_offsets slot.

Source

fn chunks(self) -> SlotSlice<'a>

Returns the chunks slot.

Source

fn slots_view(self) -> ChunkedSlotsView<'a>

Returns a borrowed view of all slots.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§