Trait fixed_vec_deque::Array
source · pub unsafe trait Array {
type Item;
// Required methods
fn size() -> usize;
fn ptr(&self) -> *const Self::Item;
fn ptr_mut(&mut self) -> *mut Self::Item;
// Provided methods
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.
Safety
Implementor must ensure that the type is array appropriate.