pub enum EditOutcome {
Untold,
Heard {
edited_won: bool,
},
SelfReported,
}Expand description
What a hand edit’s commit reported about the edit against the original.
The type exists because the old as_improvement: bool could not say the
most informative thing a player can say. “I edited this, listened to both,
and the original was better” is a duel with a known answer — and under a
boolean it was unrepresentable: false meant “said nothing”, so the
loss was silently discarded and the log only ever saw edits that won. A
preference log that records only successes is a biased sample of exactly
the kind the model has no defence against, and hand editing is the richest
signal in the app.
Variants§
Untold
Nothing was claimed. Lineage still links the two; no observation.
Heard
The player heard both and picked. edited_won: false is the losing
direction — the half that used to be inexpressible.
SelfReported
The player asserted the edit is better without hearing them back to back (the express “my edit is better” checkbox). Same claim, weaker evidence, tagged so it can be scored separately.
Implementations§
Source§impl EditOutcome
impl EditOutcome
Sourcepub fn told(&self) -> Option<(bool, Provenance)>
pub fn told(&self) -> Option<(bool, Provenance)>
(edited_won, provenance) when this outcome makes a claim.
Trait Implementations§
Source§impl Clone for EditOutcome
impl Clone for EditOutcome
Source§fn clone(&self) -> EditOutcome
fn clone(&self) -> EditOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EditOutcome
impl Debug for EditOutcome
Source§impl PartialEq for EditOutcome
impl PartialEq for EditOutcome
Source§fn eq(&self, other: &EditOutcome) -> bool
fn eq(&self, other: &EditOutcome) -> bool
self and other values to be equal, and is used by ==.