pub struct HighlightInfo {
pub line_start: usize,
pub line_end: usize,
pub lines: HashMap<usize, (usize, usize)>,
}Expand description
HighlightInfo holds the highlight ranges for a set of matches.
This is exposed so integration tests can assert on highlight ranges the same way the upstream in-package tests do.
Fields§
§line_start: usizein which line this highlight starts and ends
line_end: usizein which line this highlight ends
lines: HashMap<usize, (usize, usize)>the grapheme highlight ranges for each of these lines
Trait Implementations§
Source§impl Clone for HighlightInfo
impl Clone for HighlightInfo
Source§fn clone(&self) -> HighlightInfo
fn clone(&self) -> HighlightInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HighlightInfo
impl Debug for HighlightInfo
Source§impl PartialEq for HighlightInfo
impl PartialEq for HighlightInfo
impl StructuralPartialEq for HighlightInfo
Auto Trait Implementations§
impl Freeze for HighlightInfo
impl RefUnwindSafe for HighlightInfo
impl Send for HighlightInfo
impl Sync for HighlightInfo
impl Unpin for HighlightInfo
impl UnsafeUnpin for HighlightInfo
impl UnwindSafe for HighlightInfo
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