pub struct FileDiagnostic {
pub line: u32,
pub column: u32,
pub severity: u32,
pub message: String,
}Expand description
A diagnostic reported by a language server for a specific file location.
Fields§
§line: u321-based line number.
column: u321-based column number.
severity: u32Severity: 1 = Error, 2 = Warning, 3 = Info, 4 = Hint.
message: StringDiagnostic message.
Implementations§
Trait Implementations§
Source§impl Clone for FileDiagnostic
impl Clone for FileDiagnostic
Source§fn clone(&self) -> FileDiagnostic
fn clone(&self) -> FileDiagnostic
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 FileDiagnostic
impl RefUnwindSafe for FileDiagnostic
impl Send for FileDiagnostic
impl Sync for FileDiagnostic
impl Unpin for FileDiagnostic
impl UnsafeUnpin for FileDiagnostic
impl UnwindSafe for FileDiagnostic
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