pub struct RunConfiguration {
pub array_size: usize,
pub distribution: Distribution,
pub seed: u64,
pub fairness_mode: FairnessMode,
pub target_fps: u32,
}
Expand description
Complete configuration for a sorting race run
Fields§
§array_size: usize
Size of the array to sort
distribution: Distribution
Distribution pattern for array generation
seed: u64
Random seed for deterministic generation
fairness_mode: FairnessMode
Fairness model to use
target_fps: u32
Target frames per second for visualization
Implementations§
Source§impl RunConfiguration
impl RunConfiguration
Sourcepub fn with_array_size(self, size: usize) -> Self
pub fn with_array_size(self, size: usize) -> Self
Set array size
Sourcepub fn with_distribution(self, distribution: Distribution) -> Self
pub fn with_distribution(self, distribution: Distribution) -> Self
Set distribution pattern
Sourcepub fn with_fairness_mode(self, fairness_mode: FairnessMode) -> Self
pub fn with_fairness_mode(self, fairness_mode: FairnessMode) -> Self
Set fairness mode
Sourcepub fn with_target_fps(self, fps: u32) -> Self
pub fn with_target_fps(self, fps: u32) -> Self
Set target FPS
Trait Implementations§
Source§impl Clone for RunConfiguration
impl Clone for RunConfiguration
Source§fn clone(&self) -> RunConfiguration
fn clone(&self) -> RunConfiguration
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 RunConfiguration
impl Debug for RunConfiguration
Auto Trait Implementations§
impl Freeze for RunConfiguration
impl RefUnwindSafe for RunConfiguration
impl Send for RunConfiguration
impl Sync for RunConfiguration
impl Unpin for RunConfiguration
impl UnwindSafe for RunConfiguration
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