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元素。
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.