pub enum HitRegion {
Text,
LeftMargin,
Indent,
TableBorder,
BelowContent,
PastLineEnd,
Image {
name: String,
},
Link {
href: String,
},
}Expand description
What region of the layout a hit test landed in.
Variants§
Text
Inside a text run (normal text content).
LeftMargin
In the block’s left margin area (before any text content).
Indent
In the block’s indent area.
TableBorder
On a table border line.
BelowContent
Below all content in the document.
PastLineEnd
Past the end of a line (to the right of the last character).
Image
On an inline image.
Link
On a hyperlink.
Auto Trait Implementations§
impl Freeze for HitRegion
impl RefUnwindSafe for HitRegion
impl Send for HitRegion
impl Sync for HitRegion
impl Unpin for HitRegion
impl UnsafeUnpin for HitRegion
impl UnwindSafe for HitRegion
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