pub enum MemoryAllocationMode {
Auto,
Persistent,
}Expand description
The mode of allocation used.
Variants§
Auto
Use the automatic memory management strategy for allocation.
Persistent
Use a persistent memory management strategy, meaning that all allocations are for data that is likely never going to be freed.
Trait Implementations§
Source§impl Clone for MemoryAllocationMode
impl Clone for MemoryAllocationMode
Source§fn clone(&self) -> MemoryAllocationMode
fn clone(&self) -> MemoryAllocationMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryAllocationMode
impl Debug for MemoryAllocationMode
Source§impl Default for MemoryAllocationMode
impl Default for MemoryAllocationMode
Source§fn default() -> MemoryAllocationMode
fn default() -> MemoryAllocationMode
Returns the “default value” for a type. Read more
impl Copy for MemoryAllocationMode
Auto Trait Implementations§
impl Freeze for MemoryAllocationMode
impl RefUnwindSafe for MemoryAllocationMode
impl Send for MemoryAllocationMode
impl Sync for MemoryAllocationMode
impl Unpin for MemoryAllocationMode
impl UnwindSafe for MemoryAllocationMode
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