Skip to main content

MapArraySlotsExt

Trait MapArraySlotsExt 

Source
pub trait MapArraySlotsExt<'a>: BorrowArraySlots<'a, Map> {
    // Provided methods
    fn entries(self) -> &'a ArrayRef { ... }
    fn slots_view(self) -> MapSlotsView<'a> { ... }
}
Expand description

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

Returns the entries slot.

Source

fn slots_view(self) -> MapSlotsView<'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, Map>> MapArraySlotsExt<'a> for S