Trait Synthesize
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§
fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<(), EcoVec<SourceDiagnostic>>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(), EcoVec<SourceDiagnostic>>
Prepare the element for show rule application.