Skip to main content

Crate use_state_step

Crate use_state_step 

Source
Expand description

Explicit state stepping helpers for finite simulations.

The crate models each update as a concrete StateStep so simulations can retain both the previous and next state for later inspection.

§Examples

use use_state_step::{apply_steps, states};

let path = states(1.0, &[0.5, -0.25]).unwrap();
let steps = apply_steps(1.0, &[0.5, -0.25]).unwrap();

assert_eq!(path, vec![1.0, 1.5, 1.25]);
assert_eq!(steps[1].delta, -0.25);

Structs§

StateStep

Enums§

StateStepError

Functions§

apply_steps
states
step_state