Trait Construct

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

Source

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§

Source§

impl Construct for FrameElem

Source§

impl Construct for HtmlElem

Source§

impl Construct for CounterDisplayElem

Source§

impl Construct for MetadataElem

Source§

impl Construct for TagElem

Source§

impl Construct for AlignElem

Source§

impl Construct for ColbreakElem

Source§

impl Construct for ColumnsElem

Source§

impl Construct for BlockElem

Source§

impl Construct for BoxElem

Source§

impl Construct for InlineElem

Source§

impl Construct for GridCell

Source§

impl Construct for GridElem

Source§

impl Construct for GridFooter

Source§

impl Construct for GridHLine

Source§

impl Construct for GridHeader

Source§

impl Construct for GridVLine

Source§

impl Construct for HideElem

Source§

impl Construct for PadElem

Source§

impl Construct for PageElem

Source§

impl Construct for PagebreakElem

Source§

impl Construct for FlushElem

Source§

impl Construct for PlaceElem

Source§

impl Construct for RepeatElem

Source§

impl Construct for HElem

Source§

impl Construct for VElem

Source§

impl Construct for StackElem

Source§

impl Construct for MoveElem

Source§

impl Construct for RotateElem

Source§

impl Construct for ScaleElem

Source§

impl Construct for SkewElem

Source§

impl Construct for AccentElem

Source§

impl Construct for AttachElem

Source§

impl Construct for LimitsElem

Source§

impl Construct for PrimesElem

Source§

impl Construct for ScriptsElem

Source§

impl Construct for StretchElem

Source§

impl Construct for CancelElem

Source§

impl Construct for EquationElem

Source§

impl Construct for BinomElem

Source§

impl Construct for FracElem

Source§

impl Construct for LrElem

Source§

impl Construct for MidElem

Source§

impl Construct for CasesElem

Source§

impl Construct for MatElem

Source§

impl Construct for VecElem

Source§

impl Construct for OpElem

Source§

impl Construct for RootElem

Source§

impl Construct for AlignPointElem

Source§

impl Construct for ClassElem

Source§

impl Construct for OverbraceElem

Source§

impl Construct for OverbracketElem

Source§

impl Construct for typst_library::math::underover::OverlineElem

Source§

impl Construct for OverparenElem

Source§

impl Construct for OvershellElem

Source§

impl Construct for UnderbraceElem

Source§

impl Construct for UnderbracketElem

Source§

impl Construct for typst_library::math::underover::UnderlineElem

Source§

impl Construct for UnderparenElem

Source§

impl Construct for UndershellElem

Source§

impl Construct for BibliographyElem

Source§

impl Construct for CiteElem

Source§

impl Construct for CiteGroup

Source§

impl Construct for DocumentElem

Source§

impl Construct for EmphElem

Source§

impl Construct for EnumElem

Source§

impl Construct for EnumItem

Source§

impl Construct for FigureCaption

Source§

impl Construct for FigureElem

Source§

impl Construct for FootnoteElem

Source§

impl Construct for FootnoteEntry

Source§

impl Construct for HeadingElem

Source§

impl Construct for LinkElem

Source§

impl Construct for ListElem

Source§

impl Construct for ListItem

Source§

impl Construct for OutlineElem

Source§

impl Construct for OutlineEntry

Source§

impl Construct for ParElem

Source§

impl Construct for ParLine

Source§

impl Construct for ParLineMarker

Source§

impl Construct for ParbreakElem

Source§

impl Construct for QuoteElem

Source§

impl Construct for RefElem

Source§

impl Construct for StrongElem

Source§

impl Construct for TableCell

Source§

impl Construct for TableElem

Source§

impl Construct for TableFooter

Source§

impl Construct for TableHLine

Source§

impl Construct for TableHeader

Source§

impl Construct for TableVLine

Source§

impl Construct for TermItem

Source§

impl Construct for TermsElem

Source§

impl Construct for EmbedElem

Source§

impl Construct for HighlightElem

Source§

impl Construct for typst_library::text::deco::OverlineElem

Source§

impl Construct for StrikeElem

Source§

impl Construct for typst_library::text::deco::UnderlineElem

Source§

impl Construct for LinebreakElem

Source§

impl Construct for RawElem

Source§

impl Construct for RawLine

Source§

impl Construct for SubElem

Source§

impl Construct for SuperElem

Source§

impl Construct for SmallcapsElem

Source§

impl Construct for SmartQuoteElem

Source§

impl Construct for SpaceElem

Source§

impl Construct for TextElem

Source§

impl Construct for CurveClose

Source§

impl Construct for CurveCubic

Source§

impl Construct for CurveElem

Source§

impl Construct for CurveLine

Source§

impl Construct for CurveMove

Source§

impl Construct for CurveQuad

Source§

impl Construct for ImageElem

Source§

impl Construct for LineElem

Source§

impl Construct for PathElem

Source§

impl Construct for PolygonElem

Source§

impl Construct for CircleElem

Source§

impl Construct for EllipseElem

Source§

impl Construct for RectElem

Source§

impl Construct for SquareElem

Source§

impl Construct for ContextElem

Source§

impl Construct for SequenceElem

Source§

impl Construct for StyledElem

Source§

impl Construct for SymbolElem

Source§

impl Construct for TargetElem