pub struct HeapStorage<T> { /* private fields */ }Available on crate feature
alloc only.Expand description
Heap-allocated storage.
Trait Implementations§
Source§impl<T> Drop for HeapStorage<T>
impl<T> Drop for HeapStorage<T>
Source§impl<T> From<Box<[UnsafeSyncCell<T>]>> for HeapStorage<T>
impl<T> From<Box<[UnsafeSyncCell<T>]>> for HeapStorage<T>
Source§fn from(value: Box<[UnsafeSyncCell<T>]>) -> Self
fn from(value: Box<[UnsafeSyncCell<T>]>) -> Self
Converts to this type from the input type.
Source§impl<T> From<Vec<T>> for HeapStorage<T>
impl<T> From<Vec<T>> for HeapStorage<T>
Source§impl<T> From<Vec<UnsafeSyncCell<T>>> for HeapStorage<T>
impl<T> From<Vec<UnsafeSyncCell<T>>> for HeapStorage<T>
Source§fn from(value: Vec<UnsafeSyncCell<T>>) -> Self
fn from(value: Vec<UnsafeSyncCell<T>>) -> Self
Converts to this type from the input type.
Source§impl<T> Index<usize> for HeapStorage<T>
impl<T> Index<usize> for HeapStorage<T>
Source§impl<T> Storage for HeapStorage<T>
impl<T> Storage for HeapStorage<T>
type Item = T
Source§fn as_ptr(&self) -> *const UnsafeSyncCell<Self::Item>
fn as_ptr(&self) -> *const UnsafeSyncCell<Self::Item>
Returns the underlying array as a const ptr.
Source§fn 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.
Auto Trait Implementations§
impl<T> Freeze for HeapStorage<T>
impl<T> !RefUnwindSafe for HeapStorage<T>
impl<T> !Send for HeapStorage<T>
impl<T> !Sync for HeapStorage<T>
impl<T> Unpin for HeapStorage<T>
impl<T> !UnwindSafe for HeapStorage<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more