pub struct Inline<const N: usize>;
Expand description
A marker type used to indicate the inline allocation strategy, which stores all items within the collection handle.
Trait Implementations§
Source§impl<T, const N: usize> VecConfigNew<T> for Inline<N>
impl<T, const N: usize> VecConfigNew<T> for Inline<N>
Source§const EMPTY_BUFFER: Self::Buffer<T> = InlineBuffer<T, N>::DEFAULT
const EMPTY_BUFFER: Self::Buffer<T> = InlineBuffer<T, N>::DEFAULT
Constant initializer for an empty buffer.
Source§fn buffer_try_new(
capacity: Self::Index,
exact: bool,
) -> Result<Self::Buffer<T>, StorageError>
fn buffer_try_new( capacity: Self::Index, exact: bool, ) -> Result<Self::Buffer<T>, StorageError>
Try to create a new buffer instance with a given capacity.
Source§impl<T, const N: usize> VecConfigSpawn<T> for Inline<N>
impl<T, const N: usize> VecConfigSpawn<T> for Inline<N>
Source§fn buffer_try_spawn(
_buf: &Self::Buffer<T>,
capacity: Self::Index,
exact: bool,
) -> Result<Self::Buffer<T>, StorageError>
fn buffer_try_spawn( _buf: &Self::Buffer<T>, capacity: Self::Index, exact: bool, ) -> Result<Self::Buffer<T>, StorageError>
Try to create a new buffer instance with a given capacity.
impl<const N: usize> Copy for Inline<N>
impl<const N: usize> Eq for Inline<N>
impl<const N: usize> StructuralPartialEq for Inline<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for Inline<N>
impl<const N: usize> RefUnwindSafe for Inline<N>
impl<const N: usize> Send for Inline<N>
impl<const N: usize> Sync for Inline<N>
impl<const N: usize> Unpin for Inline<N>
impl<const N: usize> UnwindSafe for Inline<N>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T, A> ToOwnedIn<A> for T
impl<T, A> ToOwnedIn<A> for T
Source§fn try_to_owned_in<I>(
&self,
_alloc_in: I,
) -> Result<<T as ToOwnedIn<A>>::Owned, StorageError>where
I: AllocateIn<Alloc = A>,
fn try_to_owned_in<I>(
&self,
_alloc_in: I,
) -> Result<<T as ToOwnedIn<A>>::Owned, StorageError>where
I: AllocateIn<Alloc = A>,
To to create an owned copy of this instance in a given allocation target.
Source§fn to_owned_in<I>(&self, alloc_in: I) -> Self::Ownedwhere
I: AllocateIn<Alloc = A>,
fn to_owned_in<I>(&self, alloc_in: I) -> Self::Ownedwhere
I: AllocateIn<Alloc = A>,
Create an owned copy of this instance in a given allocation target.