pub enum StepBodyError {
Text(String),
Refused(KernelRefusal),
}Expand description
Why one body did not import: the builders’ legacy text, or a TYPED refusal
from the one gate that mints one today, the shell-closure gate
(builder/closure.rs). The class rides to the feature boundary through
import_step_bodies; every other producer inside the importer still
returns text and is preserved verbatim (typed-refusal plan, item 1).
Variants§
Text(String)
Refused(KernelRefusal)
Implementations§
Source§impl StepBodyError
impl StepBodyError
Sourcepub fn closure_refusal(&self) -> bool
pub fn closure_refusal(&self) -> bool
Whether this is the shell-closure gate’s refusal
(RefusalClass::UnsoundResult { defect: SoundnessDefect::VectorArea },
builder/closure.rs): the one typed class the body lanes treat as a
REFUSED body rather than a body that failed to build. Every other
producer that went typed on 2026-10-03 (the pinched-vertex split, the
BREP_WITH_VOIDS certifications, the post-build validation) keeps the
outcome its text had: counted in failed, skipped on an opportunistic
surface-model sheet, never a whole-file refusal.
Sourcepub fn with_context(self, f: impl FnOnce(&str) -> String) -> Self
pub fn with_context(self, f: impl FnOnce(&str) -> String) -> Self
The same error with its text rewritten by f, the class untouched.