#[non_exhaustive]pub struct DiagSign {
pub row: usize,
pub ch: char,
pub priority: u8,
}Expand description
A single diagnostic sign emitted from the syntax pipeline.
Carries only renderer-agnostic fields: row, ch, and priority.
The TUI adapter converts these to ratatui-styled hjkl_buffer::Sign
objects using its own colour choices.
§Examples
use hjkl_syntax::DiagSign;
let s = DiagSign::new(3, 'E', 100);
assert_eq!(s.row, 3);Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.row: usizeDocument row (0-indexed).
ch: charGutter character (e.g. 'E' for a syntax error).
priority: u8Gutter priority — higher wins when multiple signs land on the same row.
Implementations§
Trait Implementations§
impl Copy for DiagSign
impl Eq for DiagSign
impl StructuralPartialEq for DiagSign
Auto Trait Implementations§
impl Freeze for DiagSign
impl RefUnwindSafe for DiagSign
impl Send for DiagSign
impl Sync for DiagSign
impl Unpin for DiagSign
impl UnsafeUnpin for DiagSign
impl UnwindSafe for DiagSign
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