pub trait Array<T> {
    const Size: usize;
    const Mask: usize;
    // Required methods
    unsafe fn get_unchecked(&self, index: usize) -> &T;
    unsafe fn get_unchecked_mut(&mut self, index: usize) -> &mut T;
    fn as_ptr(&self) -> *const T;
    fn as_mut_ptr(&mut self) -> *mut T;
    // Provided methods
    fn mask() -> usize { ... }
    fn as_ptr_at(&self, index: usize) -> *const T { ... }
    fn as_mut_ptr_at(&mut self, index: usize) -> *mut T { ... }
}Required Associated Constants§
Required Methods§
unsafe fn get_unchecked(&self, index: usize) -> &T
unsafe fn get_unchecked_mut(&mut self, index: usize) -> &mut T
fn as_ptr(&self) -> *const T
fn as_mut_ptr(&mut self) -> *mut T
Provided Methods§
fn mask() -> usize
fn as_ptr_at(&self, index: usize) -> *const T
fn as_mut_ptr_at(&mut self, index: usize) -> *mut T
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.