pub enum ProgressiveAllocationStrategy {
Geometric {
base_resources: Float,
ratio: Float,
n_levels: usize,
},
Exponential {
initial_resources: Float,
growth_rate: Float,
n_levels: usize,
},
Fibonacci {
base_resources: Float,
n_levels: usize,
},
Adaptive {
initial_resources: Float,
adaptation_rate: Float,
performance_threshold: Float,
},
Custom {
resource_schedule: Vec<Float>,
},
}Expand description
Progressive resource allocation strategy
Variants§
Geometric
Geometric progression: each level gets r^i times more resources
Exponential
Exponential progression: exponentially increasing resources
Fibonacci
Fibonacci progression: resources follow Fibonacci sequence
Adaptive
Adaptive progression based on performance feedback
Custom
Custom progression with user-defined schedule
Trait Implementations§
Source§impl Clone for ProgressiveAllocationStrategy
impl Clone for ProgressiveAllocationStrategy
Source§fn clone(&self) -> ProgressiveAllocationStrategy
fn clone(&self) -> ProgressiveAllocationStrategy
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 moreAuto Trait Implementations§
impl Freeze for ProgressiveAllocationStrategy
impl RefUnwindSafe for ProgressiveAllocationStrategy
impl Send for ProgressiveAllocationStrategy
impl Sync for ProgressiveAllocationStrategy
impl Unpin for ProgressiveAllocationStrategy
impl UnwindSafe for ProgressiveAllocationStrategy
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