pub struct MinimapLine {
pub logical_line_index: usize,
pub visual_in_logical: usize,
pub char_offset_start: usize,
pub char_offset_end: usize,
pub total_cells: usize,
pub non_whitespace_cells: usize,
pub dominant_style: Option<StyleId>,
pub is_fold_placeholder_appended: bool,
}Expand description
A lightweight minimap summary for one visual line.
Fields§
§logical_line_index: usizeCorresponding logical line index.
visual_in_logical: usizeWhich wrapped segment within the logical line (0-based).
char_offset_start: usizeCharacter offset (inclusive) of this segment in the document.
char_offset_end: usizeCharacter offset (exclusive) of this segment in the document.
total_cells: usizeTotal rendered cell width for this visual line (including wrap indent and fold placeholder).
non_whitespace_cells: usizeNumber of non-whitespace rendered cells.
dominant_style: Option<StyleId>Dominant style id on this line (if any style exists).
is_fold_placeholder_appended: boolWhether a fold placeholder was appended.
Trait Implementations§
Source§impl Clone for MinimapLine
impl Clone for MinimapLine
Source§fn clone(&self) -> MinimapLine
fn clone(&self) -> MinimapLine
Returns a duplicate of the value. Read more
1.0.0 · 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 MinimapLine
impl Debug for MinimapLine
Source§impl PartialEq for MinimapLine
impl PartialEq for MinimapLine
impl Eq for MinimapLine
impl StructuralPartialEq for MinimapLine
Auto Trait Implementations§
impl Freeze for MinimapLine
impl RefUnwindSafe for MinimapLine
impl Send for MinimapLine
impl Sync for MinimapLine
impl Unpin for MinimapLine
impl UnsafeUnpin for MinimapLine
impl UnwindSafe for MinimapLine
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