pub struct ClosureError<R: Role> { /* private fields */ }Expand description
How closure says no.
Closure issues are independent and co-establishable, so the body carries every issue the pass established and says so where it kept only what fits. No issue is elected as the primary one, and a body with nothing in it is unrepresentable.
Implementations§
Source§impl<R: Role> ClosureError<R>
impl<R: Role> ClosureError<R>
Sourcepub fn of(issue: ClosureIssue<R>) -> Self
pub fn of(issue: ClosureIssue<R>) -> Self
The refusal one established issue makes.
Sourcepub fn over(first: ClosureIssue<R>, rest: Vec<ClosureIssue<R>>) -> Self
pub fn over(first: ClosureIssue<R>, rest: Vec<ClosureIssue<R>>) -> 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 first_issue(&self) -> &ClosureIssue<R>
pub fn first_issue(&self) -> &ClosureIssue<R>
The first issue the pass established, which every refusal has.
Sourcepub fn issues(&self) -> &NonEmpty<ClosureIssue<R>, CLOSURE_ISSUE_LIMIT>
pub fn issues(&self) -> &NonEmpty<ClosureIssue<R>, CLOSURE_ISSUE_LIMIT>
Every issue this refusal carries, in the order the pass established them; structurally at least one.
Trait Implementations§
Source§impl<R: Clone + Role> Clone for ClosureError<R>
impl<R: Clone + Role> Clone for ClosureError<R>
Source§fn clone(&self) -> ClosureError<R>
fn clone(&self) -> ClosureError<R>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<R: Role> Display for ClosureError<R>
impl<R: Role> Display for ClosureError<R>
impl<R: Eq + Role> Eq for ClosureError<R>
Source§impl<R: Role> Error for ClosureError<R>
impl<R: Role> Error for ClosureError<R>
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<R: Role> Refused for ClosureError<R>
impl<R: Role> Refused for ClosureError<R>
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 what the caller’s own plan declared or what the caller’s own renderer produced, so the repair is one of those two declarations; a sentence composed here would be this compiler citing a fact nobody declared.