Skip to main content

Module ty

Module ty 

Source
Expand description

What tast’s types are built from: foreign lowers foreign-language spellings to fic scalars, one implementation per language; width is a fic width’s Rust integer type, and value a constant’s value in it.

Modules§

foreign
Foreign surface types → fic types: one ForeignTypes implementation per ForeignLang, chosen through lowering. The mirror of the backend’s per-target ABI (#338): that maps a fic type to a machine type, this maps a language’s spelling to a fic type: each language supplies its scalar table and its machine word; what every language shares at a C-ABI boundary (a pointer is an address, a struct is nominal) is signature’s, which rast lowers a called function’s signature with.
value
A constant’s value: a Rust integer of its fic width, or a bool.
width
The Rust integer type of a fic width: int8 is i8, uint32 is u32, uint and Address are u64, byte is u8. A literal enters a width by T::try_from (T::MIN..=T::MAX for the message when it does not) and every operation is Rust’s checked one in it.