pub unsafe trait Array {
    type Item: Default;

    fn size() -> usize;
    fn ptr(&self) -> *const Self::Item;
    fn ptr_mut(&mut self) -> *mut Self::Item;

    fn wrap_add(idx: usize, addend: usize) -> usize { ... }
    fn wrap_sub(idx: usize, subtrahend: usize) -> usize { ... }
}
Expand description

Types that can be used as the backing store for a FixedVecDeque.

Required Associated Types

The type of the array’s elements.

Required Methods

Returns the number of items the array can hold.

Returns a pointer to the first element of the array.

Returns a mutable pointer to the first element of the array.

Provided Methods

Returns the index in the underlying buffer for a given logical element index + addend.

Returns the index in the underlying buffer for a given logical element index - subtrahend.

Implementations on Foreign Types

Implementors