pub struct AnalyzeReport { /* private fields */ }Expand description
The outcome of analysing a specification.
Implementations§
Source§impl AnalyzeReport
impl AnalyzeReport
Sourcepub fn render_human(&self) -> String
pub fn render_human(&self) -> String
The diagnostics in a human-readable form, one per line, like
file:3:7: error[DIVE-E0100] (SANY 4200): message.
Sourcepub fn to_json(&self) -> Value
pub fn to_json(&self) -> Value
The versioned JSON report.
Shape (schema version 3):
{ "schema_version": 3, "command": "analyze", "file": "...",
"accepted": bool, "module": "Root" | null, "modules": ["Dep", ..., "Root"],
"files": [ { "id", "path", "origin": "file"|"standard"|"monolith"|"text" } ],
"diagnostics": [ { "code", "severity", "message", "help", "sany_code",
"file", "span": { "start", "end", "line", "column",
"end_line", "end_column" } | null,
"related": [ { "file", "span", "message" } ] } ],
"definitions": [ { "name", "arity", "level" } ] // root module, when accepted
}file fields are indexes into files. Offsets are bytes; lines and
columns are 1-based, columns count Unicode scalar values. Levels are
"constant", "state", "action" or "temporal".
Trait Implementations§
Source§impl Clone for AnalyzeReport
impl Clone for AnalyzeReport
Auto Trait Implementations§
impl Forget for AnalyzeReport
impl Freeze for AnalyzeReport
impl Move for AnalyzeReport
impl RefUnwindSafe for AnalyzeReport
impl Send for AnalyzeReport
impl Sync for AnalyzeReport
impl Unpin for AnalyzeReport
impl UnsafeUnpin for AnalyzeReport
impl UnwindSafe for AnalyzeReport
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