pub struct SimConfig { /* private fields */ }Expand description
Configuration for a simulation run.
TigerStyle:
- Immutable after creation
- Seed logged for reproducibility
- All limits explicit
Implementations§
Source§impl SimConfig
impl SimConfig
Sourcepub fn from_env_or_random() -> Self
pub fn from_env_or_random() -> Self
Create config from DST_SEED env var or random.
If DST_SEED is set, uses that value. Otherwise, generates a random seed and prints it for reproducibility.
§Example
use umi_memory::dst::SimConfig;
// Set DST_SEED=42 to get deterministic seed
let config = SimConfig::from_env_or_random();Sourcepub fn with_steps_max(self, steps_max: u64) -> Self
pub fn with_steps_max(self, steps_max: u64) -> Self
Create a new config with a different steps_max.
Trait Implementations§
impl Copy for SimConfig
Auto Trait Implementations§
impl Freeze for SimConfig
impl RefUnwindSafe for SimConfig
impl Send for SimConfig
impl Sync for SimConfig
impl Unpin for SimConfig
impl UnwindSafe for SimConfig
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