Expand description
The Rust frontend: reads a Rust program into the surface AST.
It reads the subset of Rust the core can represent faithfully: modules
with use of crate items, enums with unit and tuple variants (Box<T>
fields are the recursive occurrences of a value type), free functions over
machine integers, bool and String, anonymous scalar Copy tuple products,
expression bodies with let, if, match and format!, and a main made
of println!, let and assert!/assert_eq! statements. Everything else is rejected with a
precise obligation.
Mirrors js/src/translation/rust.js.
Functionsยง
- parse_
rust - Reads a Rust program.
- parse_
rust_ with_ array_ result_ model - Read Rust under an explicit versioned scalar vector result admission model.
- parse_
rust_ with_ completion_ model - Read closed guarded returns under an explicitly selected source profile.
- parse_
rust_ with_ const_ function_ model - Read owned const qualification on closed primitive Rust predicates.
- parse_
rust_ with_ empty_ option_ source_ model - Read the explicit closed empty primitive option source interpretation.
- parse_
rust_ with_ owned_ local_ state_ model - Read explicit owned String local state and its exact source interface.
- parse_
rust_ with_ primitive_ owner_ model - Read the explicitly selected standard binary64 source owner interpretation.
- parse_
rust_ with_ pure_ unit_ call_ model - Read complete closed pure Unit programs under the independently selected model.
- parse_
rust_ with_ runtime_ shell_ model - Read a complete emitted Rust runtime under its independent owned interpretation.
- parse_
rust_ with_ scalar_ loop_ model - Read an explicitly selected closed primitive scalar loop interpretation.
- parse_
rust_ with_ source_ models - Read Rust with independently selected array-result and completion profiles.
- parse_
rust_ with_ source_ profiles - Read independently selected array, completion and source signature models.
- parse_
rust_ with_ source_ signature_ model - Capture actual structured source header facts under an explicit model.
- parse_
rust_ with_ type_ namespace_ model - Read Rust with actual source type-namespace ownership and ordered spellings.