pub struct Hit {
pub role: HitRole,
pub target: Option<Expr>,
pub detail: Vec<(String, Expr)>,
}Expand description
A hit-test result: what was under the pointer, the runtime value it stands
for, and any role-specific detail (for example a port’s node/port/dir).
Fields§
§role: HitRoleThe kind of element hit.
target: Option<Expr>The runtime value the element represents, if any.
detail: Vec<(String, Expr)>Role-specific fields (control name, port descriptor, field path, …).
Implementations§
Trait Implementations§
impl Eq for Hit
impl StructuralPartialEq for Hit
Auto Trait Implementations§
impl Freeze for Hit
impl RefUnwindSafe for Hit
impl Send for Hit
impl Sync for Hit
impl Unpin for Hit
impl UnsafeUnpin for Hit
impl UnwindSafe for Hit
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