Skip to main content

ListViewArraySlotsExt

Trait ListViewArraySlotsExt 

Source
pub trait ListViewArraySlotsExt<'a>: BorrowArraySlots<'a, ListView> {
    // Provided methods
    fn elements(self) -> &'a ArrayRef { ... }
    fn offsets(self) -> &'a ArrayRef { ... }
    fn sizes(self) -> &'a ArrayRef { ... }
    fn validity_child(self) -> Option<&'a ArrayRef> { ... }
    fn slots_view(self) -> ListViewSlotsView<'a> { ... }
}
Expand description

Typed slot accessors for ListView 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 elements(self) -> &'a ArrayRef

Returns the elements slot.

Source

fn offsets(self) -> &'a ArrayRef

Returns the offsets slot.

Source

fn sizes(self) -> &'a ArrayRef

Returns the sizes slot.

Source

fn validity_child(self) -> Option<&'a ArrayRef>

Returns the validity_child slot.

Source

fn slots_view(self) -> ListViewSlotsView<'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§