pub struct BuddyConfig {
pub enable_coalescing: bool,
pub enable_split_optimization: bool,
pub min_block_size: usize,
pub max_allocation_size: usize,
pub enable_tracking: bool,
pub enable_access_analysis: bool,
pub defrag_threshold: f64,
pub auto_defrag: bool,
}Expand description
Buddy allocator configuration
Fields§
§enable_coalescing: boolEnable coalescing of free blocks
enable_split_optimization: boolEnable split optimization
min_block_size: usizeMinimum block size (must be power of 2)
max_allocation_size: usizeMaximum allocation size
enable_tracking: boolEnable allocation tracking
enable_access_analysis: boolEnable access pattern analysis
defrag_threshold: f64Defragmentation threshold
auto_defrag: boolEnable automatic defragmentation
Trait Implementations§
Source§impl Clone for BuddyConfig
impl Clone for BuddyConfig
Source§fn clone(&self) -> BuddyConfig
fn clone(&self) -> BuddyConfig
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 BuddyConfig
impl Debug for BuddyConfig
Auto Trait Implementations§
impl Freeze for BuddyConfig
impl RefUnwindSafe for BuddyConfig
impl Send for BuddyConfig
impl Sync for BuddyConfig
impl Unpin for BuddyConfig
impl UnsafeUnpin for BuddyConfig
impl UnwindSafe for BuddyConfig
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