Expand description
Shared semantic types used across compiler crates.
Modulesยง
Structsยง
- Normalized
Ty - Normalized ownership representation used by checker and lowering boundaries.
Enumsยง
- Access
Mode - Access intent associated with one normalized type at a usage boundary.
- BaseTy
- Pure type identity without ownership or mutability semantics.
- Check
Policy - Runtime check requirement for one coercion.
- Coercion
Decision - Coercion decision returned by the normalized compatibility table.
- Materialization
Kind - Materialization category used by lowering.
- Materialization
Policy - Materialization requirement for one coercion.
- Normalize
Error - Error returned when converting semantic type shapes into normalized forms.
- Runtime
Check Kind - Runtime check category used by coercion planning.
- Ty
- Semantic type assigned by checking and consumed by lower IRs/backends.
Functionsยง
- boundary_
coercion_ decision - Compute coercion compatibility for one boundary where access mode is tracked separately.
- can_
safely_ coerce_ numeric - Return whether numeric value
fromcan be converted intotowithout loss. - float_
width ๐ - integer_
width ๐ - is_
signed_ ๐integer - Return whether integer type is signed.
- is_
truncation_ cast - Return whether
sourcetotargetrepresents a narrowing truncation cast. - normalize_
ty - Normalize one type by extracting top-level reference ownership.
- normalize_
ty_ with_ access - Normalize one type using one explicit boundary access mode.
- normalized_
coercion_ decision - Compute coercion compatibility for two normalized types.
- promote_
numeric_ types - Return promoted numeric type for mixed arithmetic operands.
- signed_
ty_ ๐for_ width - Return signed integer type for width.
- ty_
coercion_ decision - Compute normalized coercion compatibility for two semantic types.
- unsigned_
ty_ ๐for_ width - Return unsigned integer type for width.