pub struct Highlight {
pub start: usize,
pub end: usize,
pub style: HighlightStyle,
pub label: Option<String>,
}Expand description
A highlight/underline on a source line
Fields§
§start: usizeStart column (1-based)
end: usizeEnd column (exclusive, 1-based)
style: HighlightStyleStyle of highlight
label: Option<String>Optional label
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Highlight
impl RefUnwindSafe for Highlight
impl Send for Highlight
impl Sync for Highlight
impl Unpin for Highlight
impl UnsafeUnpin for Highlight
impl UnwindSafe for Highlight
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