Expand description
Schema-level type patterns used to describe receivers, parameters, and results in the method catalog (§16.2).
This is not the inference type system — that lives in praxis-typeck.
TypePattern is a small, self-describing shape language, enough to populate
the catalog and to be unified with the real type representation. Keeping it
separate is what keeps praxis-stdlib from depending on praxis-typeck.
Enums§
- Bound
- What a catalog type variable is required to be.
- Collection
Ctor - Built-in collection constructors (§6.1).
RangeandBitSettake no type arguments; the others take one (Vec,Set, …) or two (Map). - Scalar
Type - Built-in scalar types (§4.3). The full set is named here even though
UInthas no runtime object of its own (§7.4: its type isInt) — these names must not be reused for anything else. - Type
Pattern - A pattern describing a type shape in a catalog entry.
Constants§
- PIPELINE_
RECEIVERS - The collection constructors a
TypePattern::Iterablereceiver accepts (ADR-127 decision 1) — theforloop’s list minusGridandSeq.
Functions§
- is_
pipeline_ receiver - Whether a concrete receiver pattern is one of the ten a
TypePattern::Iterablerow accepts (ADR-127 decision 1). - pattern_
matches - Whether a catalog receiver pattern accepts a concrete runtime pattern.