tinymist_std::typst::foundations

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

Prepare the element for show rule application.

Implementors§

§

impl Synthesize for Packed<BibliographyElem>

§

impl Synthesize for Packed<CiteElem>

§

impl Synthesize for Packed<EquationElem>

§

impl Synthesize for Packed<FigureCaption>

§

impl Synthesize for Packed<FigureElem>

§

impl Synthesize for Packed<HeadingElem>

§

impl Synthesize for Packed<RawElem>

§

impl Synthesize for Packed<RefElem>