Crate typst_macros

Source
Expand description

Procedural macros for Typst.

Macros§

cast
Implements Reflect, FromValue, and IntoValue for a type.
symbols
Defines a list of Symbols.

Attribute Macros§

category
Defines a category of definitions.
elem
Makes a native Rust type usable as a Typst element.
func
Makes a native Rust function usable as a Typst function.
scope
Provides an associated scope to a native function, type, or element.
time
Times function invocations.
ty
Makes a native Rust type usable as a Typst type.

Derive Macros§

Cast
Implements Reflect, FromValue, and IntoValue for an enum.