pub enum Target {
Ref(u32),
Name(String),
Id(String),
Role(String),
RoleAt(String, u32),
}Variants§
Ref(u32)
snapshot 中的第 N 个可交互元素(DFS 序重放)
Name(String)
Name 子串匹配(首个命中)
Id(String)
AutomationId 精确匹配
Role(String)
ControlType 精确匹配(如 Button)
RoleAt(String, u32)
ControlType + 1 起序数(role:Button#2 = 第 2 个 Button;fallback 链 L3)
Implementations§
Trait Implementations§
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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