pub struct SelectionRect {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}Expand description
A visual selection rectangle covering a contiguous visual portion of a selection.
Plan §13.6: “Selection rectangles may cover discontiguous visual runs for one logical range.”
Fields§
§x: f32Visual X coordinate of the left edge.
y: f32Visual Y coordinate of the top edge.
width: f32Width of this selection slice.
height: f32Height of this selection slice.
Trait Implementations§
Source§impl Clone for SelectionRect
impl Clone for SelectionRect
impl Copy for SelectionRect
Source§impl Debug for SelectionRect
impl Debug for SelectionRect
Source§impl PartialEq for SelectionRect
impl PartialEq for SelectionRect
impl StructuralPartialEq for SelectionRect
Auto Trait Implementations§
impl Freeze for SelectionRect
impl RefUnwindSafe for SelectionRect
impl Send for SelectionRect
impl Sync for SelectionRect
impl Unpin for SelectionRect
impl UnsafeUnpin for SelectionRect
impl UnwindSafe for SelectionRect
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