pub enum MemoryGrowthStrategy {
Static,
Dynamic,
Incremental,
}Expand description
Memory growth strategies
Variants§
Static
Pre-allocate all memory upfront
Dynamic
Grow memory as needed
Incremental
Pre-allocate with incremental growth
Trait Implementations§
Source§impl Clone for MemoryGrowthStrategy
impl Clone for MemoryGrowthStrategy
Source§fn clone(&self) -> MemoryGrowthStrategy
fn clone(&self) -> MemoryGrowthStrategy
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 MemoryGrowthStrategy
impl Debug for MemoryGrowthStrategy
Source§impl<'de> Deserialize<'de> for MemoryGrowthStrategy
impl<'de> Deserialize<'de> for MemoryGrowthStrategy
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 Serialize for MemoryGrowthStrategy
impl Serialize for MemoryGrowthStrategy
impl Copy for MemoryGrowthStrategy
Auto Trait Implementations§
impl Freeze for MemoryGrowthStrategy
impl RefUnwindSafe for MemoryGrowthStrategy
impl Send for MemoryGrowthStrategy
impl Sync for MemoryGrowthStrategy
impl Unpin for MemoryGrowthStrategy
impl UnsafeUnpin for MemoryGrowthStrategy
impl UnwindSafe for MemoryGrowthStrategy
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