Struct flex_alloc::storage::SpillAlloc

source ·
pub struct SpillAlloc<'a, A> { /* private fields */ }

Trait Implementations§

source§

impl<'a, A: RawAllocNew> Clone for SpillAlloc<'a, A>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a, A: Debug> Debug for SpillAlloc<'a, A>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<A> Default for SpillAlloc<'_, A>
where A: Default + RawAlloc,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<A: RawAlloc> RawAlloc for SpillAlloc<'_, A>

source§

fn try_alloc(&self, layout: Layout) -> Result<NonNull<[u8]>, StorageError>

source§

unsafe fn release(&self, ptr: NonNull<u8>, layout: Layout)

source§

fn try_alloc_zeroed( &self, layout: Layout, ) -> Result<NonNull<[u8]>, StorageError>

source§

unsafe fn try_resize( &self, ptr: NonNull<u8>, old_layout: Layout, new_layout: Layout, ) -> Result<NonNull<[u8]>, StorageError>

source§

impl<'a, A: RawAllocNew> RawAllocNew for SpillAlloc<'a, A>

source§

const NEW: Self = _

Auto Trait Implementations§

§

impl<'a, A> Freeze for SpillAlloc<'a, A>
where A: Freeze,

§

impl<'a, A> RefUnwindSafe for SpillAlloc<'a, A>
where A: RefUnwindSafe,

§

impl<'a, A> !Send for SpillAlloc<'a, A>

§

impl<'a, A> !Sync for SpillAlloc<'a, A>

§

impl<'a, A> Unpin for SpillAlloc<'a, A>
where A: Unpin,

§

impl<'a, A> !UnwindSafe for SpillAlloc<'a, A>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<A> RawAllocIn for A
where A: RawAlloc,

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, A> ToOwnedIn<A> for T
where T: Clone + 'static, A: RawAlloc,

source§

type Owned = T

source§

fn try_to_owned_in<I>( &self, _alloc_in: I, ) -> Result<<T as ToOwnedIn<A>>::Owned, StorageError>
where I: RawAllocIn<RawAlloc = A>,

source§

fn to_owned_in<I>(&self, alloc_in: I) -> Self::Owned
where I: RawAllocIn<RawAlloc = A>,

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<A> VecAlloc for A
where A: RawAlloc,

source§

type RawAlloc = A

source§

type AllocHandle<T, I: Index> = FatAllocHandle<VecData<T, I>, A>

source§

impl<C> VecConfig for C
where C: VecAlloc,

source§

impl<T, C> VecConfigNew<T> for C
where C: VecConfigSpawn<T>, <C as VecConfig>::Buffer<T>: VecBufferNew,

source§

const NEW: <C as VecConfig>::Buffer<T> = const NEW: Self::Buffer<T> = <Self::Buffer<T>>::NEW;

source§

fn vec_try_new( capacity: <C as VecConfig>::Index, exact: bool, ) -> Result<<C as VecConfig>::Buffer<T>, StorageError>

source§

impl<T, C> VecConfigSpawn<T> for C
where C: VecConfig, <C as VecConfig>::Buffer<T>: VecBufferSpawn,

source§

fn vec_try_spawn( buf: &<C as VecConfig>::Buffer<T>, capacity: <C as VecConfig>::Index, exact: bool, ) -> Result<<C as VecConfig>::Buffer<T>, StorageError>

source§

impl<T, C> VecNewIn<T> for C
where C: RawAllocIn,

source§

type Config = <C as RawAllocIn>::RawAlloc

source§

fn vec_try_new_in( self, capacity: <<C as VecNewIn<T>>::Config as VecConfig>::Index, exact: bool, ) -> Result<<<C as VecNewIn<T>>::Config as VecConfig>::Buffer<T>, StorageError>