Skip to main content

BorrowArraySlots

Trait BorrowArraySlots 

Source
pub trait BorrowArraySlots<'a, V: VTable>: Copy {
    // Required method
    fn borrow_slots(self) -> &'a [Option<ArrayRef>];
}
Expand description

A by-value handle to the child slots of a V array that are borrowed for 'a.

Implemented for &'a T where T is an owned Array<V> or any other TypedArrayRef, and for ArrayView<'a, V> itself. The slot accessors generated by #[array_slots] are built on it, so on an ArrayView<'a, V> they return references with the view’s lifetime 'a rather than borrowing from the local view.

Required Methods§

Source

fn borrow_slots(self) -> &'a [Option<ArrayRef>]

Returns the child slots of the array, borrowed for 'a.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, V: VTable, T: TypedArrayRef<V> + ?Sized> BorrowArraySlots<'a, V> for &'a T

Implementors§

Source§

impl<'a, V: VTable> BorrowArraySlots<'a, V> for ArrayView<'a, V>