Module typ
Structs
- An array type decomposed by
Type::as_arrayinto its element and length components. - A struct or enum type decomposed by
Type::as_data_typeinto itsTypeDefinitionand its concrete generic arguments. - An integer type decomposed by
Type::as_integerinto its signedness and bit width.
Functions
- Creates and returns an unbound type variable. This is a special kind of type internal to type checking which will type check with any other type. When it is type checked against another type it will also be set to that type. For example, if
ais a type variable and we have the type equality(a, i32) = (u8, i32), the compiler will setaequal tou8.
Contains methods on the built-in
Typetype used for representing a type in the source program.