Skip to main content

DictArraySlotsExt

Trait DictArraySlotsExt 

Source
pub trait DictArraySlotsExt<'a>: BorrowArraySlots<'a, Dict> {
    // Provided methods
    fn codes(self) -> &'a ArrayRef { ... }
    fn values(self) -> &'a ArrayRef { ... }
    fn slots_view(self) -> DictSlotsView<'a> { ... }
}
Expand description

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

Returns the codes slot.

Source

fn values(self) -> &'a ArrayRef

Returns the values slot.

Source

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

Source§

impl<'a, S: BorrowArraySlots<'a, Dict>> DictArraySlotsExt<'a> for S