tinymist_std::typst::foundations

Trait Construct

pub trait Construct {
    // Required method
    fn construct(
        engine: &mut Engine<'_>,
        args: &mut Args,
    ) -> Result<Content, EcoVec<SourceDiagnostic>>
       where Self: Sized;
}
Expand description

An element’s constructor function.

Required Methods§

fn construct( engine: &mut Engine<'_>, args: &mut Args, ) -> Result<Content, EcoVec<SourceDiagnostic>>
where Self: Sized,

Construct an element from the arguments.

This is passed only the arguments that remain after execution of the element’s set rule.

Implementors§

§

impl Construct for ContextElem

§

impl Construct for SequenceElem

§

impl Construct for StyledElem

§

impl Construct for SymbolElem

§

impl Construct for TargetElem

§

impl Construct for AccentElem

§

impl Construct for AlignElem

§

impl Construct for AlignPointElem

§

impl Construct for AttachElem

§

impl Construct for BibliographyElem

§

impl Construct for BinomElem

§

impl Construct for BlockElem

§

impl Construct for BoxElem

§

impl Construct for CancelElem

§

impl Construct for CasesElem

§

impl Construct for CircleElem

§

impl Construct for CiteElem

§

impl Construct for CiteGroup

§

impl Construct for ClassElem

§

impl Construct for ColbreakElem

§

impl Construct for ColumnsElem

§

impl Construct for CounterDisplayElem

§

impl Construct for CurveClose

§

impl Construct for CurveCubic

§

impl Construct for CurveElem

§

impl Construct for CurveLine

§

impl Construct for CurveMove

§

impl Construct for CurveQuad

§

impl Construct for DocumentElem

§

impl Construct for EllipseElem

§

impl Construct for EmbedElem

§

impl Construct for EmphElem

§

impl Construct for EnumElem

§

impl Construct for EnumItem

§

impl Construct for EquationElem

§

impl Construct for FigureCaption

§

impl Construct for FigureElem

§

impl Construct for FlushElem

§

impl Construct for FootnoteElem

§

impl Construct for FootnoteEntry

§

impl Construct for FracElem

§

impl Construct for FrameElem

§

impl Construct for GridCell

§

impl Construct for GridElem

§

impl Construct for GridFooter

§

impl Construct for GridHLine

§

impl Construct for GridHeader

§

impl Construct for GridVLine

§

impl Construct for HElem

§

impl Construct for HeadingElem

§

impl Construct for HideElem

§

impl Construct for HighlightElem

§

impl Construct for HtmlElem

§

impl Construct for ImageElem

§

impl Construct for InlineElem

§

impl Construct for LimitsElem

§

impl Construct for LineElem

§

impl Construct for LinebreakElem

§

impl Construct for LinkElem

§

impl Construct for ListElem

§

impl Construct for ListItem

§

impl Construct for LrElem

§

impl Construct for MatElem

§

impl Construct for MetadataElem

§

impl Construct for MidElem

§

impl Construct for MoveElem

§

impl Construct for OpElem

§

impl Construct for OutlineElem

§

impl Construct for OutlineEntry

§

impl Construct for OverbraceElem

§

impl Construct for OverbracketElem

§

impl Construct for OverlineElem

§

impl Construct for OverlineElem

§

impl Construct for OverparenElem

§

impl Construct for OvershellElem

§

impl Construct for PadElem

§

impl Construct for PageElem

§

impl Construct for PagebreakElem

§

impl Construct for ParElem

§

impl Construct for ParLine

§

impl Construct for ParLineMarker

§

impl Construct for ParbreakElem

§

impl Construct for PathElem

§

impl Construct for PlaceElem

§

impl Construct for PolygonElem

§

impl Construct for PrimesElem

§

impl Construct for QuoteElem

§

impl Construct for RawElem

§

impl Construct for RawLine

§

impl Construct for RectElem

§

impl Construct for RefElem

§

impl Construct for RepeatElem

§

impl Construct for RootElem

§

impl Construct for RotateElem

§

impl Construct for ScaleElem

§

impl Construct for ScriptsElem

§

impl Construct for SkewElem

§

impl Construct for SmallcapsElem

§

impl Construct for SmartQuoteElem

§

impl Construct for SpaceElem

§

impl Construct for SquareElem

§

impl Construct for StackElem

§

impl Construct for StretchElem

§

impl Construct for StrikeElem

§

impl Construct for StrongElem

§

impl Construct for SubElem

§

impl Construct for SuperElem

§

impl Construct for TableCell

§

impl Construct for TableElem

§

impl Construct for TableFooter

§

impl Construct for TableHLine

§

impl Construct for TableHeader

§

impl Construct for TableVLine

§

impl Construct for TagElem

§

impl Construct for TermItem

§

impl Construct for TermsElem

§

impl Construct for TextElem

§

impl Construct for UnderbraceElem

§

impl Construct for UnderbracketElem

§

impl Construct for UnderlineElem

§

impl Construct for UnderlineElem

§

impl Construct for UnderparenElem

§

impl Construct for UndershellElem

§

impl Construct for VElem

§

impl Construct for VecElem