pub struct InlineStorage<T>(/* private fields */);Expand description
Implementations§
Source§impl<T> InlineStorage<T>
impl<T> InlineStorage<T>
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Constructs a new InlineStorage
Trait Implementations§
Source§impl<T> Clone for InlineStorage<T>
impl<T> Clone for InlineStorage<T>
Source§impl<T> Default for InlineStorage<T>
impl<T> Default for InlineStorage<T>
Source§impl<T> Storage for InlineStorage<T>
impl<T> Storage for InlineStorage<T>
Source§type Handle = InlineStorageHandle
type Handle = InlineStorageHandle
The
StorageHandle type that represents an allocation by this StorageSource§unsafe fn resolve(&self, InlineStorageHandle: Self::Handle) -> NonNull<()>
unsafe fn resolve(&self, InlineStorageHandle: Self::Handle) -> NonNull<()>
Returns a pointer to the allocation represented by
handle Read moreSource§fn allocate(
&self,
layout: Layout,
) -> Result<(Self::Handle, usize), StorageAllocError>
fn allocate( &self, layout: Layout, ) -> Result<(Self::Handle, usize), StorageAllocError>
Allocates memory with a layout specified by
layout Read moreSource§unsafe fn deallocate(&self, layout: Layout, InlineStorageHandle: Self::Handle)
unsafe fn deallocate(&self, layout: Layout, InlineStorageHandle: Self::Handle)
impl<T> Send for InlineStorage<T>
impl<T> Sync for InlineStorage<T>
Auto Trait Implementations§
impl<T> !Freeze for InlineStorage<T>
impl<T> !RefUnwindSafe for InlineStorage<T>
impl<T> Unpin for InlineStorage<T>where
T: Unpin,
impl<T> UnwindSafe for InlineStorage<T>where
T: UnwindSafe,
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