pub struct Mark {
pub start: u32,
pub end: u32,
pub error: bool,
pub code: String,
pub message: String,
}Expand description
One diagnostic, as an editor draws it: a byte range, a code and the text a terminal would print.
Fields§
§start: u32§end: u32§error: bool§code: String§message: StringThe message, the notes and the fix — everything the terminal renderer would have put under the span. An editor that showed only the first line would be dropping the suggestion §3.4 insists a diagnostic carries.
Trait Implementations§
impl Eq for Mark
impl StructuralPartialEq for Mark
Auto Trait Implementations§
impl Freeze for Mark
impl RefUnwindSafe for Mark
impl Send for Mark
impl Sync for Mark
impl Unpin for Mark
impl UnwindSafe for Mark
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