win_wrap::uia::pattern

Trait PatternCreatorWithAutomation

Source
pub trait PatternCreatorWithAutomation<I: Interface>: TryFrom<(I, Weak<IUIAutomation6>)> + Sized {
    const PATTERN: UIA_PATTERN_ID;

    // Provided method
    fn obtain(value: &UiAutomationElement) -> Result<Self, PatternError>
       where <Self as TryFrom<(I, Weak<IUIAutomation6>)>>::Error: Debug { ... }
}

Required Associated Constants§

Source

const PATTERN: UIA_PATTERN_ID

模式的ID

Provided Methods§

Source

fn obtain(value: &UiAutomationElement) -> Result<Self, PatternError>
where <Self as TryFrom<(I, Weak<IUIAutomation6>)>>::Error: Debug,

从UI元素获取此模式。 value UI元素。

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl PatternCreatorWithAutomation<IUIAutomationItemContainerPattern> for UiAutomationItemContainerPattern

Source§

const PATTERN: UIA_PATTERN_ID = UIA_ItemContainerPatternId

Source§

impl PatternCreatorWithAutomation<IUIAutomationTableItemPattern> for UiAutomationTableItemPattern

Source§

const PATTERN: UIA_PATTERN_ID = UIA_TableItemPatternId

Source§

impl PatternCreatorWithAutomation<IUIAutomationTablePattern> for UiAutomationTablePattern

Source§

const PATTERN: UIA_PATTERN_ID = UIA_TablePatternId