feat(api): add Outcome enum with Ranked variant

Outcome::winner(i, n), Outcome::draw(n), Outcome::ranking(iter) are
the convenience constructors. Marked #[non_exhaustive] so Scored can
be added in T4 without breaking match exhaustiveness.

Adds smallvec = "1" as a direct dependency.

Part of T2 of docs/superpowers/specs/2026-04-23-trueskill-engine-redesign-design.md.
This commit is contained in:
2026-04-24 12:12:53 +02:00
parent 33a7d90b89
commit 3df422db78
3 changed files with 90 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ harness = false
[dependencies]
approx = { version = "0.5.1", optional = true }
smallvec = "1"
[dev-dependencies]
criterion = "0.5"