pub enum MemoryAllocationStrategy {
Standard,
Pooled,
Arena,
}Expand description
Memory allocation strategies
Variants§
Trait Implementations§
Source§impl Clone for MemoryAllocationStrategy
impl Clone for MemoryAllocationStrategy
Source§fn clone(&self) -> MemoryAllocationStrategy
fn clone(&self) -> MemoryAllocationStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MemoryAllocationStrategy
impl Debug for MemoryAllocationStrategy
Source§impl<'de> Deserialize<'de> for MemoryAllocationStrategy
impl<'de> Deserialize<'de> for MemoryAllocationStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MemoryAllocationStrategy
impl PartialEq for MemoryAllocationStrategy
Source§fn eq(&self, other: &MemoryAllocationStrategy) -> bool
fn eq(&self, other: &MemoryAllocationStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MemoryAllocationStrategy
impl Serialize for MemoryAllocationStrategy
impl StructuralPartialEq for MemoryAllocationStrategy
Auto Trait Implementations§
impl Freeze for MemoryAllocationStrategy
impl RefUnwindSafe for MemoryAllocationStrategy
impl Send for MemoryAllocationStrategy
impl Sync for MemoryAllocationStrategy
impl Unpin for MemoryAllocationStrategy
impl UnsafeUnpin for MemoryAllocationStrategy
impl UnwindSafe for MemoryAllocationStrategy
Blanket Implementations§
impl<T> Allocation for T
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