pub trait ComponentLocator: Sized {
const KIND: &'static str;
const ROOT: Role;
// Required methods
fn from_locator(root: Locator) -> Self;
fn locator(&self) -> &Locator;
// Provided method
fn of_kind() -> Self { ... }
}Available on crate feature
icedwright only.Expand description
A component’s locator, built over the locator for its root node.
Required Associated Constants§
Required Methods§
Sourcefn from_locator(root: Locator) -> Self
fn from_locator(root: Locator) -> Self
Wraps a locator that finds the component’s root.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".