Module func

Structs§

Closure
A user-defined closure.
Func
A mapping from argument values to a return value.
NativeFuncData
Defines a native function.
NativeFuncPtr
A pointer to a native function’s implementation.
ParamInfo
Describes a function parameter.

Enums§

ClosureNode
Distinguishes between variants of closures.
Repr
The different kinds of function representations.

Traits§

NativeFunc
A Typst function that is defined by a native Rust type that shadows a native Rust function.

Attribute Macros§

func
Makes a native Rust function usable as a Typst function.