pub struct LogicalLine {
pub text: String,
pub cells: Vec<(i32, usize)>,
}Expand description
One soft-wrap-joined logical line touching the viewport.
Fields§
§text: StringThe line text: wrap-joined across soft-wrapped rows, wide-char spacers
skipped, trailing blanks trimmed (matches xterm translateToString(true)).
cells: Vec<(i32, usize)>Per text char, the viewport cell (row, col) it came from. A row
outside 0..rows is off-screen wrapped context (a line that wraps in from
above the top / out past the bottom) — present so a URL spanning the edge
still matches; the consumer highlights only the in-range cells.
Trait Implementations§
Source§impl Clone for LogicalLine
impl Clone for LogicalLine
Source§fn clone(&self) -> LogicalLine
fn clone(&self) -> LogicalLine
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 LogicalLine
impl Debug for LogicalLine
impl Eq for LogicalLine
Source§impl PartialEq for LogicalLine
impl PartialEq for LogicalLine
impl StructuralPartialEq for LogicalLine
Auto Trait Implementations§
impl Freeze for LogicalLine
impl RefUnwindSafe for LogicalLine
impl Send for LogicalLine
impl Sync for LogicalLine
impl Unpin for LogicalLine
impl UnsafeUnpin for LogicalLine
impl UnwindSafe for LogicalLine
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