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.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.