ElementRole

Trait ElementRole 

Source
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§

Source

fn universal(&self) -> UniversalElementRole

Maps this role to a universal, language-agnostic role.

Source

fn name(&self) -> &str

Returns a specific name for this role, used for granular highlighting.

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§