pub struct PlanError { /* private fields */ }Expand description
How planning says no.
Planning issues are independent and co-establishable — one pass may find a doubled seat and an overrun magnitude at once — 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 PlanError
impl PlanError
Sourcepub fn over(first: PlanIssue, rest: Vec<PlanIssue>) -> Self
pub fn over(first: PlanIssue, rest: Vec<PlanIssue>) -> 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(axis: BoundAxis, overflow: Overflow) -> Self
pub fn bounded(axis: BoundAxis, overflow: Overflow) -> Self
The refusal a magnitude makes: the axis that was overrun, and the two counts the overflow already carries.
Sourcepub fn over_trail(node: Identity<GeneratedUnit>, refusal: TrailError) -> Self
pub fn over_trail(node: Identity<GeneratedUnit>, refusal: TrailError) -> Self
The refusal a trail that could not be drawn makes, over the unit it was to be drawn for.
The unit is the caller’s to name because a trail refusal carries none, and an origin that cannot be drawn at all is that unit standing with no origin.
Sourcepub fn first_issue(&self) -> &PlanIssue
pub fn first_issue(&self) -> &PlanIssue
The first issue the pass established, which every refusal has.
Trait Implementations§
impl Eq for PlanError
Source§impl Error for PlanError
impl Error for PlanError
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 Refused for PlanError
impl Refused for PlanError
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 declaration states, so the repair is that declaration; a sentence composed here would be this compiler citing a fact nobody declared.