Trait Synthesize

Source
pub trait Synthesize {
    // Required method
    fn synthesize(
        &mut self,
        engine: &mut Engine<'_>,
        styles: StyleChain<'_>,
    ) -> Result<(), EcoVec<SourceDiagnostic>>;
}
Expand description

Synthesize fields on an element. This happens before execution of any show rule.

Required Methods§

Source

fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(), EcoVec<SourceDiagnostic>>

Prepare the element for show rule application.

Implementors§