pub struct Highlighted<'a> {
pub lines: Vec<Line<'a>>,
}Expand description
Highlighted lines borrowing source text and query capture names.
Even an empty source produces one line. A trailing newline produces a final empty line. Tokens exclude newline separators.
Fields§
§lines: Vec<Line<'a>>Lines in source order, starting at line one.
Implementations§
Source§impl Highlighted<'_>
impl Highlighted<'_>
Sourcepub fn to_owned(&self) -> HighlightResult
pub fn to_owned(&self) -> HighlightResult
Copy this borrowed output into an independent snapshot.
Trait Implementations§
Source§impl<'a> Clone for Highlighted<'a>
impl<'a> Clone for Highlighted<'a>
Source§impl<'a> Debug for Highlighted<'a>
impl<'a> Debug for Highlighted<'a>
impl<'a> Eq for Highlighted<'a>
Source§impl<'a> PartialEq for Highlighted<'a>
impl<'a> PartialEq for Highlighted<'a>
impl<'a> StructuralPartialEq for Highlighted<'a>
Auto Trait Implementations§
impl<'a> Forget for Highlighted<'a>
impl<'a> Freeze for Highlighted<'a>
impl<'a> Move for Highlighted<'a>
impl<'a> RefUnwindSafe for Highlighted<'a>
impl<'a> Send for Highlighted<'a>
impl<'a> Sync for Highlighted<'a>
impl<'a> Unpin for Highlighted<'a>
impl<'a> UnsafeUnpin for Highlighted<'a>
impl<'a> UnwindSafe for Highlighted<'a>
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