Trait win_wrap::uia::pattern::PatternCreator
source · pub trait PatternCreator<I: Interface>: TryFrom<I> + Sized {
const PATTERN: UIA_PATTERN_ID;
// Provided method
fn obtain(value: &UiAutomationElement) -> Result<Self, PatternError>
where <Self as TryFrom<I>>::Error: Debug { ... }
}Required Associated Constants§
Provided Methods§
sourcefn obtain(value: &UiAutomationElement) -> Result<Self, PatternError>
fn obtain(value: &UiAutomationElement) -> Result<Self, PatternError>
从UI元素获取此模式。
value UI元素。
Object Safety§
This trait is not object safe.