Skip to main content

reveal_grade

Function reveal_grade 

Source
pub fn reveal_grade(label: &str, grade_str: &str, grade_plain: &str, nc: bool)
Expand description

Animate a grade reveal with a brief “computing” pause followed by the final grade. Creates intentional friction — the user anticipates the result before it appears.

§Arguments

  • label — The metric being graded (e.g., “Overall”, “Latency”)
  • grade_str — The final grade string (already colorized if needed)
  • grade_plain — The plain grade string for no-color mode
  • nc — No-color mode flag