[−][src]Trait livesplit_core::comparison::ComparisonGenerator
A Comparison Generator automatically generates a comparison based on what kind of generator it is. Comparison Generators stored in a Run automatically get called between all attempts to refresh the comparison's information.
Required methods
fn name(&self) -> &str
The name of the comparison.
fn generate(&mut self, segments: &mut [Segment], attempts: &[Attempt])
Generate the comparison. The comparison generator is expected to modify the comparison's times for each segment. The Attempt History is provided, in case the comparison generator requires information from the previous attempts.