pub struct CheckOutcome {
pub diagnostics: Vec<Diagnostic>,
pub model: Option<SemanticModel>,
pub files: Vec<FileRecord>,
pub post_compile_hook: Option<PostCompileHook>,
}Expand description
The outcome of check: structured diagnostics plus the resolved model.
model is present exactly when diagnostics is empty (a clean project);
files is the frontend file registry (main file id 0, then one entry per
include) and is retained even on failure so diagnostics map to real
sources.
Fields§
§diagnostics: Vec<Diagnostic>§model: Option<SemanticModel>§files: Vec<FileRecord>§post_compile_hook: Option<PostCompileHook>The declared #!postCompileHook script, when the source declared one
and the project checked clean.
This is the declaration record, not an execution result: the frontend recognizes, parses, validates, and records the directive, but never executes the hook. Execution against the final Workshop text is lowering-dependent (workshop-rs emission, issue #8); the frontend never fabricates a Workshop payload.
Implementations§
Trait Implementations§
Source§impl Clone for CheckOutcome
impl Clone for CheckOutcome
Source§fn clone(&self) -> CheckOutcome
fn clone(&self) -> CheckOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CheckOutcome
impl RefUnwindSafe for CheckOutcome
impl Send for CheckOutcome
impl Sync for CheckOutcome
impl Unpin for CheckOutcome
impl UnsafeUnpin for CheckOutcome
impl UnwindSafe for CheckOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more