Expand description
Types and type operations for Typst.
Structs§
- Apply
SigChecker - A checker for applying a signature to a type.
- Bound
Check Context - A context for checking the bounds of a type.
- Bound
Pred - A predicate for checking the bounds of a type.
- DynType
Bounds - The state of a type variable (bounds of some type in program).
- IfTy
- A conditional type.
if t1 then t2 else t3
- Iface
Check Context - A context to check the interface of a type.
- Iface
Check Driver - A driver to check the interface of a type.
- InsTy
- An instance of a typst type.
- Name
Bone - An ordered list of names.
- Package
Id - A package identifier.
- Param
Attrs - Describes a function parameter attribute.
- ParamTy
- Describes a parameter type.
- Path
Kind Iter - An iterator over the variants of PathKind
- Record
Ty - A record type.
- Select
KeyChecker - A checker to check the select of a type.
- Select
Ty - A field selection type.
- SigCheck
Context - A context to check a signature.
- SigCheck
Driver - A driver to check a signature.
- SigShape
- A shape of a signature.
- SigTy
- A typst function type.
- SigWith
Ty - A type with partially applied arguments.
- Type
Binary - A binary operation type.
- Type
Bounds - A frozen type variable (bounds of some type in program).
t :> t1 | ... | tn <: f1 & ... & fn
lbs------------- ubs-------------
- Type
Info - The type information on a group of syntax structures (typing).
- Type
Source - The syntax source (definition) of a type node. todo: whether we should store them in the type node
- Type
Unary - A unary operation type.
- TypeVar
- A type variable.
- Type
VarBounds - A type variable bounds.
Enums§
- Builtin
Sig - A builtin signature.
- Builtin
Ty - A builtin type.
- DocSource
- A source of documentation.
- Flow
VarKind - A type variable bounds.
- Iface
- A type that represents the interface of a type.
- Path
Kind - A kind of path recognized by the analyzer.
- Sig
- A signature.
- SigSurface
Kind - A kind of signature surface.
- Ty
- All possible types in tinymist.
- Type
SigParam - A function parameter type.
Statics§
- FLOW_
INSET_ DICT - The record component of an inset type.
- FLOW_
MARGIN_ DICT - The record component of a margin type.
- FLOW_
OUTSET_ DICT - The record component of an outset type.
- FLOW_
RADIUS_ DICT - The record component of a radius type.
- FLOW_
STROKE_ DICT - The record component of a stroke type.
- FLOW_
TEXT_ FONT_ DICT - The record component of a text font type.
Traits§
- Apply
Checker - A trait for checking the application of a signature.
- Bound
Checker - A trait for checking the bounds of a type.
- Iface
Checker - A trait to check the interface of a type.
- Select
Checker - A trait to check the select of a type.
- SigChecker
- A trait to check a signature.
- TyCtx
- A type context.
- TyCtx
Mut - A mutable type context.
- TyMutator
- A trait to mutate a type.
- Type
Interface - A common type kinds for those types that has fields (abstracted record type).
- Type
Interface Ext - Extension common methods for
TypeInterface
.
Functions§
- is_
plain_ value - Checks if a value is a plain value.
- term_
value - Gets the type of a value.
- term_
value_ rec - Gets the type of a value recursively.
Type Aliases§
Derive Macros§
- Bind
TyCtx - Derives the
BindTyCtx
trait.