pub struct Row {
pub line: usize,
pub start: usize,
pub end: usize,
}Expand description
One screen row: the document line it belongs to, and the range of that line’s characters it shows.
Rows of one line are contiguous and cover it completely, so every column belongs to exactly one row and a caret always has a row to sit on.
Fields§
§line: usizeThe index of the document line this row is part of.
start: usizeThe first column of the line shown here.
end: usizeOne past the last column shown here.
Implementations§
Trait Implementations§
impl Copy for Row
impl Eq for Row
impl StructuralPartialEq for Row
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnsafeUnpin for Row
impl UnwindSafe for Row
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