pub enum EvalSummary {
Validated {
accuracy: f64,
},
NotValidated,
}Expand description
Whether a built site’s lessons carry eval validation, and at what accuracy.
A represented state (§1.2), never a missing-file inference: the effectful shell decides whether a report is present and hands the pure assembly an explicit value, so the eval-results page can always distinguish “validated at N%” from “not validated”. A missing report can never masquerade as a real 0%.
Variants§
Validated
Evals were run; accuracy is the figure the Slice-13 report recorded,
carried through as-is (§3.2) and only formatted — never recomputed here.
NotValidated
No eval report accompanied the course — the page says so explicitly.
Implementations§
Source§impl EvalSummary
impl EvalSummary
Sourcepub const VALIDATED_MARKER: &'static str = r#"data-eval-status="validated""#
pub const VALIDATED_MARKER: &'static str = r#"data-eval-status="validated""#
The data-eval-status body attribute the validated page carries. The
single source for the marker, so the page and any probe asserting it cannot
drift; mutually exclusive — as a substring — with
Self::NOT_VALIDATED_MARKER, so asserting one present and the other
absent pins the state unambiguously.
Sourcepub const NOT_VALIDATED_MARKER: &'static str = r#"data-eval-status="not-validated""#
pub const NOT_VALIDATED_MARKER: &'static str = r#"data-eval-status="not-validated""#
The data-eval-status body attribute the not-validated page carries — the
observable form of the EvalSummary::NotValidated state (§1.2).
Trait Implementations§
Source§impl Clone for EvalSummary
impl Clone for EvalSummary
Source§fn clone(&self) -> EvalSummary
fn clone(&self) -> EvalSummary
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more