pub trait ArrayAccessor: Array {
    type Item: Send + Sync;

    fn value(&self, index: usize) -> Self::Item;
    unsafe fn value_unchecked(&self, index: usize) -> Self::Item;
}
Expand description

A generic trait for accessing the values of an Array

Required Associated Types

Required Methods

Returns the element at index i

Panics

Panics if the value is outside the bounds of the array

Returns the element at index i

Safety

Caller is responsible for ensuring that the index is within the bounds of the array

Implementors