#[non_exhaustive]pub enum ClickTarget {
Element(usize),
Pixel {
x: f64,
y: f64,
},
Screen {
x: f64,
y: f64,
},
}Expand description
What to click.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Element(usize)
An element index from the latest AppState.
Pixel
A pixel position in the latest screenshot.
Screen
A point in screen coordinates (top-left origin). Needs no earlier capture.
Trait Implementations§
Source§impl Clone for ClickTarget
impl Clone for ClickTarget
impl Copy for ClickTarget
Source§impl Debug for ClickTarget
impl Debug for ClickTarget
Source§impl PartialEq for ClickTarget
impl PartialEq for ClickTarget
impl StructuralPartialEq for ClickTarget
Auto Trait Implementations§
impl Forget for ClickTarget
impl Freeze for ClickTarget
impl RefUnwindSafe for ClickTarget
impl Send for ClickTarget
impl Sync for ClickTarget
impl Unpin for ClickTarget
impl UnsafeUnpin for ClickTarget
impl UnwindSafe for ClickTarget
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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