pub struct ArenaConfig {
pub alignment: usize,
pub enable_tracking: bool,
pub enable_debug: bool,
pub enable_checkpoints: bool,
pub enable_stats: bool,
pub growth_strategy: GrowthStrategy,
pub initial_tracking_capacity: usize,
}Expand description
Arena allocator configuration
Fields§
§alignment: usizeMemory alignment (must be power of 2)
enable_tracking: boolEnable allocation tracking
enable_debug: boolEnable debug mode with extra checks
enable_checkpoints: boolEnable checkpoint support
enable_stats: boolEnable statistics collection
growth_strategy: GrowthStrategyGrowth strategy for resizable arenas
initial_tracking_capacity: usizeInitial capacity for allocation tracking
Trait Implementations§
Source§impl Clone for ArenaConfig
impl Clone for ArenaConfig
Source§fn clone(&self) -> ArenaConfig
fn clone(&self) -> ArenaConfig
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 ArenaConfig
impl Debug for ArenaConfig
Auto Trait Implementations§
impl Freeze for ArenaConfig
impl RefUnwindSafe for ArenaConfig
impl Send for ArenaConfig
impl Sync for ArenaConfig
impl Unpin for ArenaConfig
impl UnsafeUnpin for ArenaConfig
impl UnwindSafe for ArenaConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more