pub enum ExplanationIssue {
UniversalUnanswered {
question: UniversalQuestion,
},
UniversalAnsweredTwice {
question: UniversalQuestion,
},
DeclaredUnanswered {
question: &'static str,
slot: u16,
},
DeclaredAnsweredTwice {
question: &'static str,
slot: u16,
},
QuestionOutsideRoster {
question: &'static str,
},
SeatBoundExceeded {
bound: u64,
observed: u64,
},
OutputsBesideTheProof {
expected: u16,
observed: u16,
diverges: u16,
},
}Expand description
One way a set of answers fails to cover the questions a kind owes.
No row is payload-free: an issue names the question it is about, because a bare row makes the reader guess which seat to repair.
Variants§
UniversalUnanswered
A universal question has no answer.
Fields
question: UniversalQuestionThe unanswered question.
UniversalAnsweredTwice
A universal question was answered more than once.
Fields
question: UniversalQuestionThe doubled question.
DeclaredUnanswered
A question the kind declared has no answer.
Fields
DeclaredAnsweredTwice
A question the kind declared was answered more than once.
Fields
QuestionOutsideRoster
An answer names a question its own roster does not carry.
SeatBoundExceeded
More seats were offered than a declared bound admits.
OutputsBesideTheProof
The output answer does not restate the proof’s own rendered roster.
The lawful rows are derivable from the closure a view is completed over, so the pass rebuilds them and compares whole — a missing seat, an extra row, a reordered roster, and a digest that is not the proof’s all land here rather than riding a coverage-complete view.
Implementations§
Source§impl ExplanationIssue
impl ExplanationIssue
Sourcepub fn canonical_bytes(&self) -> Vec<u8> ⓘ
pub fn canonical_bytes(&self) -> Vec<u8> ⓘ
This issue’s canonical bytes on their own, for the related identity a diagnostic derives over it.
Sourcepub fn encode_into(&self, into: &mut Vec<u8>)
pub fn encode_into(&self, into: &mut Vec<u8>)
Appends this issue’s canonical bytes: the row’s position in the declared roster, then the typed material that row carries, framed.
Two rows carrying one question encode differently, because the row’s position rides ahead of the material.
Trait Implementations§
Source§impl Clone for ExplanationIssue
impl Clone for ExplanationIssue
Source§fn clone(&self) -> ExplanationIssue
fn clone(&self) -> ExplanationIssue
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more