Struct slint_interpreter::Diagnostic
pub struct Diagnostic { /* private fields */ }
Expand description
This structure represent a diagnostic emitted while compiling .slint code.
It is basically a message, a level (warning or error), attached to a position in the code
Implementationsยง
ยงimpl Diagnostic
impl Diagnostic
pub fn level(&self) -> DiagnosticLevel
pub fn level(&self) -> DiagnosticLevel
Return the level for this diagnostic
pub fn line_column(&self) -> (usize, usize)
pub fn line_column(&self) -> (usize, usize)
Returns a tuple with the line (starting at 1) and column number (starting at 0)
pub fn source_file(&self) -> Option<&Path>
pub fn source_file(&self) -> Option<&Path>
return the path of the source file where this error is attached
Trait Implementationsยง
ยงimpl Clone for Diagnostic
impl Clone for Diagnostic
ยงfn clone(&self) -> Diagnostic
fn clone(&self) -> Diagnostic
Returns a copy of the value. Read more
1.0.0 ยท sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more