tinymist_std::typst::foundations

Trait ShowSet

pub trait ShowSet {
    // Required method
    fn show_set(&self, styles: StyleChain<'_>) -> Styles;
}
Expand description

Defines built-in show set rules for an element.

This is a bit more powerful than a user-defined show-set because it can access the element’s fields.

Required Methods§

fn show_set(&self, styles: StyleChain<'_>) -> Styles

Finalize the fully realized form of the element. Use this for effects that should work even in the face of a user-defined show rule.

Implementors§

§

impl ShowSet for Packed<BibliographyElem>

§

impl ShowSet for Packed<EquationElem>

§

impl ShowSet for Packed<FigureElem>

§

impl ShowSet for Packed<FootnoteEntry>

§

impl ShowSet for Packed<HeadingElem>

§

impl ShowSet for Packed<LinkElem>

§

impl ShowSet for Packed<OutlineElem>

§

impl ShowSet for Packed<QuoteElem>

§

impl ShowSet for Packed<RawElem>