Skip to main content

replay

Function replay 

Source
pub fn replay<S: TickSim>(
    sim: &mut S,
    record: &TickRecord,
    made: &Made,
) -> Result<Vec<u64>, Mismatch>
Expand description

Plays record on sim, the state the caller built from the record’s seed, and gives the state’s hash after each step, one per step of the record, oldest first. sim is left at the record’s end. A record whose stamp isn’t made, this build’s, is refused before anything steps, naming each part that differs (Made::check): another build may step the same inputs differently without a bug in either.