pub trait Storage: MRBIndex<usize, Output = UnsafeSyncCell<Self::Item>> {
type Item;
// Required methods
fn as_ptr(&self) -> *const UnsafeSyncCell<Self::Item>;
fn as_mut_ptr(&mut self) -> *mut UnsafeSyncCell<Self::Item>;
fn len(&self) -> usize;
}
Expand description
Trait implemented by *Storage
structs.
Required Associated Types§
Required Methods§
Sourcefn as_ptr(&self) -> *const UnsafeSyncCell<Self::Item>
fn as_ptr(&self) -> *const UnsafeSyncCell<Self::Item>
Returns the underlying array as a const ptr.
Sourcefn as_mut_ptr(&mut self) -> *mut UnsafeSyncCell<Self::Item>
fn as_mut_ptr(&mut self) -> *mut UnsafeSyncCell<Self::Item>
Returns the underlying array as a mutable ptr.