pub enum AllocStrategy {
System,
Bump,
Pool,
LeanRuntime,
}Expand description
Allocation strategy.
Variants§
System
Use the system allocator (malloc/free).
Bump
Use a bump allocator (arena-style, no individual free).
Pool
Use a pool allocator (fixed-size blocks).
LeanRuntime
Use the Lean runtime allocator.
Trait Implementations§
Source§impl Clone for AllocStrategy
impl Clone for AllocStrategy
Source§fn clone(&self) -> AllocStrategy
fn clone(&self) -> AllocStrategy
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 AllocStrategy
impl Debug for AllocStrategy
Source§impl PartialEq for AllocStrategy
impl PartialEq for AllocStrategy
impl Copy for AllocStrategy
impl Eq for AllocStrategy
impl StructuralPartialEq for AllocStrategy
Auto Trait Implementations§
impl Freeze for AllocStrategy
impl RefUnwindSafe for AllocStrategy
impl Send for AllocStrategy
impl Sync for AllocStrategy
impl Unpin for AllocStrategy
impl UnsafeUnpin for AllocStrategy
impl UnwindSafe for AllocStrategy
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