pub struct HitElement {
pub identifier: String,
pub label: String,
pub frame: (f64, f64, f64, f64),
}Expand description
One element, as either side describes it.
Three fields and not a whole A11yNode: the question is “is this
the thing I aimed at”, and every extra field is another way two
truthful descriptions can differ for reasons that are not the
answer.
Fields§
§identifier: StringAccessibility identifier, empty when the element has none.
label: StringAccessibility label, empty when the element has none.
frame: (f64, f64, f64, f64)(x, y, w, h) in the app’s coordinate space.
Trait Implementations§
Source§impl Clone for HitElement
impl Clone for HitElement
Source§fn clone(&self) -> HitElement
fn clone(&self) -> HitElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HitElement
impl Debug for HitElement
Source§impl PartialEq for HitElement
impl PartialEq for HitElement
impl StructuralPartialEq for HitElement
Auto Trait Implementations§
impl Freeze for HitElement
impl RefUnwindSafe for HitElement
impl Send for HitElement
impl Sync for HitElement
impl Unpin for HitElement
impl UnsafeUnpin for HitElement
impl UnwindSafe for HitElement
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