pub struct RegionConfig {
pub initial_capacity: usize,
pub growth_factor: f64,
pub max_regions: usize,
}Expand description
Configuration for a RegionAllocator.
Fields§
§initial_capacity: usizeInitial capacity (bytes) of each newly created region.
growth_factor: f64Multiplicative growth factor when a region must be expanded.
Values outside (1.0, 16.0] are clamped.
max_regions: usizeMaximum number of live regions the allocator will manage.
Implementations§
Trait Implementations§
Source§impl Clone for RegionConfig
impl Clone for RegionConfig
Source§fn clone(&self) -> RegionConfig
fn clone(&self) -> RegionConfig
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 RegionConfig
impl Debug for RegionConfig
Auto Trait Implementations§
impl Freeze for RegionConfig
impl RefUnwindSafe for RegionConfig
impl Send for RegionConfig
impl Sync for RegionConfig
impl Unpin for RegionConfig
impl UnsafeUnpin for RegionConfig
impl UnwindSafe for RegionConfig
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