pub struct FirstLineRect {
pub rect: Rect,
pub covered: Range<usize>,
}Expand description
The answer to TextInputDocument::first_line_rect.
Fields§
§rect: RectThe rectangle, in window-logical coordinates: from the left of the line’s first character in the range to the right of its last, one line tall. At least 1 wide, so a caret has a width.
covered: Range<usize>The characters of the asked range that rect covers: the start of
the asked range (clamped) up to the end of the range or of its first
line, whichever comes first.
Trait Implementations§
Source§impl Clone for FirstLineRect
impl Clone for FirstLineRect
Source§impl Debug for FirstLineRect
impl Debug for FirstLineRect
Source§impl PartialEq for FirstLineRect
impl PartialEq for FirstLineRect
impl StructuralPartialEq for FirstLineRect
Auto Trait Implementations§
impl Freeze for FirstLineRect
impl RefUnwindSafe for FirstLineRect
impl Send for FirstLineRect
impl Sync for FirstLineRect
impl Unpin for FirstLineRect
impl UnsafeUnpin for FirstLineRect
impl UnwindSafe for FirstLineRect
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