pub trait ElementRole:
Copy
+ Eq
+ Send {
// Required methods
fn universal(&self) -> UniversalElementRole;
fn name(&self) -> &str;
}Expand description
A trait for types that can represent an element’s structural role.
Required Methods§
Sourcefn universal(&self) -> UniversalElementRole
fn universal(&self) -> UniversalElementRole
Maps this role to a universal, language-agnostic role.
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.