Skip to main content

RunEndArraySlotsExt

Trait RunEndArraySlotsExt 

Source
pub trait RunEndArraySlotsExt<'a>: BorrowArraySlots<'a, RunEnd> {
    // Provided methods
    fn ends(self) -> &'a ArrayRef { ... }
    fn values(self) -> &'a ArrayRef { ... }
    fn slots_view(self) -> RunEndSlotsView<'a> { ... }
}
Expand description

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

Returns the ends slot.

Source

fn values(self) -> &'a ArrayRef

Returns the values slot.

Source

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