pub struct HighlightedLine {
pub spans: Vec<HighlightSpan>,
pub newline_style: Option<Style>,
}Expand description
The spans of one source line, plus the style of the line break after it.
Fields§
§spans: Vec<HighlightSpan>Sorted, non-overlapping spans. Bytes no span covers take
HighlightedCode::default_style.
newline_style: Option<Style>The style an engine gives the \n ending this line (for example, inside a
multi-line string). None when the engine does not style line breaks.
Trait Implementations§
Source§impl Clone for HighlightedLine
impl Clone for HighlightedLine
Source§impl Debug for HighlightedLine
impl Debug for HighlightedLine
Source§impl Default for HighlightedLine
impl Default for HighlightedLine
Source§impl PartialEq for HighlightedLine
impl PartialEq for HighlightedLine
impl StructuralPartialEq for HighlightedLine
Auto Trait Implementations§
impl Freeze for HighlightedLine
impl RefUnwindSafe for HighlightedLine
impl Send for HighlightedLine
impl Sync for HighlightedLine
impl Unpin for HighlightedLine
impl UnsafeUnpin for HighlightedLine
impl UnwindSafe for HighlightedLine
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