Struct flex_alloc::storage::SpillStorage

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

Implementations§

source§

impl<I, A: RawAllocNew> SpillStorage<'_, I, A>

source

pub fn new(buffer: I) -> Self

source§

impl<I, A: RawAlloc> SpillStorage<'_, I, A>

source

pub fn new_in(buffer: I, alloc: A) -> Self

Trait Implementations§

source§

impl<'a, I: Clone + 'a, A: Clone> Clone for SpillStorage<'a, I, A>

source§

fn clone(&self) -> SpillStorage<'a, I, A>

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, I: Debug + 'a, A: Debug> Debug for SpillStorage<'a, I, A>

source§

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

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

impl<'a, I: Default + 'a, A: Default> Default for SpillStorage<'a, I, A>

source§

fn default() -> SpillStorage<'a, I, A>

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

impl<'a, I, A> RawAllocIn for SpillStorage<'a, I, A>
where I: RawAllocIn<RawAlloc = FixedAlloc<'a>>, A: RawAlloc,

source§

impl<'a, T, A: RawAlloc> VecNewIn<T> for SpillStorage<'a, &'a mut [MaybeUninit<T>], A>

source§

type Config = SpillAlloc<'a, A>

source§

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

Auto Trait Implementations§

§

impl<'a, I, A> Freeze for SpillStorage<'a, I, A>
where I: Freeze, A: Freeze,

§

impl<'a, I, A> RefUnwindSafe for SpillStorage<'a, I, A>

§

impl<'a, I, A> Send for SpillStorage<'a, I, A>
where I: Send, A: Send,

§

impl<'a, I, A> Sync for SpillStorage<'a, I, A>
where I: Sync, A: Sync,

§

impl<'a, I, A> Unpin for SpillStorage<'a, I, A>
where I: Unpin, A: Unpin,

§

impl<'a, I, A> !UnwindSafe for SpillStorage<'a, I, 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<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<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>