pub struct ExplanationError { /* private fields */ }Expand description
How the explanation protocol says no.
Coverage issues are independent and co-establishable — several questions may stand unanswered while another is doubled — so the body carries every issue the pass established rather than electing a primary one, and says so where it kept only what fits.
Implementations§
Source§impl ExplanationError
impl ExplanationError
Sourcepub fn of(issue: ExplanationIssue) -> Self
pub fn of(issue: ExplanationIssue) -> Self
The refusal one established issue makes.
Sourcepub fn over(first: ExplanationIssue, rest: Vec<ExplanationIssue>) -> Self
pub fn over(first: ExplanationIssue, rest: Vec<ExplanationIssue>) -> Self
The refusal a pass whose checks co-establish makes.
The caller arrives holding every issue its pass established, so the posture the body writes is about the REPORT and never about the pass: where the issues fit it carries all of them, and where they do not it carries what fits and counts the rest.
Sourcepub fn bounded(overflow: Overflow) -> Self
pub fn bounded(overflow: Overflow) -> Self
The refusal a seat bound makes, out of the two counts the overflow already carries.
Sourcepub fn first_issue(&self) -> &ExplanationIssue
pub fn first_issue(&self) -> &ExplanationIssue
The first issue the pass established, which every refusal has.
Sourcepub fn issues(&self) -> &NonEmpty<ExplanationIssue, EXPLANATION_ISSUE_LIMIT>
pub fn issues(&self) -> &NonEmpty<ExplanationIssue, EXPLANATION_ISSUE_LIMIT>
Every issue this refusal carries, in the order the pass established them; structurally at least one.
Trait Implementations§
Source§impl Clone for ExplanationError
impl Clone for ExplanationError
Source§fn clone(&self) -> ExplanationError
fn clone(&self) -> ExplanationError
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 ExplanationError
impl Debug for ExplanationError
Source§impl Display for ExplanationError
impl Display for ExplanationError
impl Eq for ExplanationError
Source§impl Error for ExplanationError
impl Error for ExplanationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl Hash for ExplanationError
impl Hash for ExplanationError
Source§impl PartialEq for ExplanationError
impl PartialEq for ExplanationError
Source§impl Refused for ExplanationError
impl Refused for ExplanationError
The issues established beyond the primary cause; the primary is the summary’s own subject, never a member of its related set.
Source§fn repairs(&self) -> Bounded<Repair, REPAIR_LIMIT>
fn repairs(&self) -> Bounded<Repair, REPAIR_LIMIT>
This home declares no repair of its own.
Every issue above is about which questions the caller answered, so the repair is that answer sheet; a sentence composed here would be this compiler citing a fact nobody declared.