pub struct TextSurfaceLine {
pub start: usize,
pub end: usize,
pub rect: [i32; 4],
pub carets: Vec<(usize, i32)>,
}Expand description
One visual line of a text editing surface, in absolute physical window coordinates.
Fields§
§start: usizeUTF-8 byte range, excluding an explicit newline. Soft wraps share their boundary.
end: usize§rect: [i32; 4]Hit/selection rectangle [x, y, width, height]. It may cover a different page per line.
carets: Vec<(usize, i32)>UTF-8 byte caret stops and their absolute x coordinates, in logical order.
Trait Implementations§
Source§impl Clone for TextSurfaceLine
impl Clone for TextSurfaceLine
Auto Trait Implementations§
impl Forget for TextSurfaceLine
impl Freeze for TextSurfaceLine
impl RefUnwindSafe for TextSurfaceLine
impl Send for TextSurfaceLine
impl Sync for TextSurfaceLine
impl Unpin for TextSurfaceLine
impl UnsafeUnpin for TextSurfaceLine
impl UnwindSafe for TextSurfaceLine
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