Struct sixtyfps_interpreter::Diagnostic [−][src]
pub struct Diagnostic { /* fields omitted */ }
This structure represent a diagnostic emited while compiling .60 code.
It is basically a message, a level (warning or error), attached to a position in the code
Implementations
impl Diagnostic
[src]
impl Diagnostic
[src]pub fn level(&self) -> DiagnosticLevel
[src]
Return the level for this diagnostic
pub fn message(&self) -> &str
[src]
Return a message for this diagnostic
pub fn line_column(&self) -> (usize, usize)
[src]
Returns a tuple with the line (starting at 1) and column number (starting at 0)
pub fn source_file(&self) -> Option<&Path>
[src]
return the path of the source file where this error is attached
Trait Implementations
impl Clone for Diagnostic
[src]
impl Clone for Diagnostic
[src]pub fn clone(&self) -> Diagnostic
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for Diagnostic
impl !RefUnwindSafe for Diagnostic
impl !Send for Diagnostic
impl !Send for Diagnostic
impl !Sync for Diagnostic
impl !Sync for Diagnostic
impl Unpin for Diagnostic
impl Unpin for Diagnostic
impl UnwindSafe for Diagnostic
impl UnwindSafe for Diagnostic