pub struct DisplayPosition {
pub row: DisplayRow,
pub x: CaretCell,
}Expand description
Where a buffer offset renders: its display row plus its horizontal
CaretCell. THE owner of “where does offset O show on screen” — a caret,
selection endpoint, squiggle bound, popup anchor, and autoscroll target all
read the same value (see FoldMap::display_position).
Fields§
§row: DisplayRowThe visible display row (a hidden closing tail resolves to its header’s).
x: CaretCellThe horizontal position on that row.
Trait Implementations§
Source§impl Clone for DisplayPosition
impl Clone for DisplayPosition
impl Copy for DisplayPosition
Source§impl Debug for DisplayPosition
impl Debug for DisplayPosition
Source§impl PartialEq for DisplayPosition
impl PartialEq for DisplayPosition
impl StructuralPartialEq for DisplayPosition
Auto Trait Implementations§
impl Freeze for DisplayPosition
impl RefUnwindSafe for DisplayPosition
impl Send for DisplayPosition
impl Sync for DisplayPosition
impl Unpin for DisplayPosition
impl UnsafeUnpin for DisplayPosition
impl UnwindSafe for DisplayPosition
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