pub struct HitTestResult {
pub annotation_index: usize,
pub action: Option<Action>,
pub destination: Option<Destination>,
pub uri: Option<String>,
}Expand description
Result of a link hit test.
Fields§
§annotation_index: usizeIndex of the matching annotation in the annotations list.
action: Option<Action>The action associated with the link, if any.
destination: Option<Destination>The destination associated with the link, if any.
uri: Option<String>The URI if the action is a URI action.
Trait Implementations§
Source§impl Clone for HitTestResult
impl Clone for HitTestResult
Source§fn clone(&self) -> HitTestResult
fn clone(&self) -> HitTestResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HitTestResult
impl RefUnwindSafe for HitTestResult
impl Send for HitTestResult
impl Sync for HitTestResult
impl Unpin for HitTestResult
impl UnsafeUnpin for HitTestResult
impl UnwindSafe for HitTestResult
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