Skip to main content

ElementProcessor

Trait ElementProcessor 

Source
pub trait ElementProcessor {
    // Required methods
    fn process(element: &mut Element<'_, '_>);
    fn can_process(element: &Element<'_, '_>) -> bool;
}
Expand description

Trait for element processors

Required Methods§

Source

fn process(element: &mut Element<'_, '_>)

Process an element

Source

fn can_process(element: &Element<'_, '_>) -> bool

Check if this processor can handle the given element

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§