Expand description
Assura-to-Rust type mapping (Int -> i64, Nat -> u64, etc.). Reverse type mapping: Rust types to Assura types.
The forward mapping (Assura -> Rust) lives in map_type_token() in lib.rs.
This module provides the inverse: given a Rust type string, produce the
canonical Assura type. Used by AI contract generation templates and the
assura infer command.
Functionsยง
- rust_
type_ to_ assura - Map a Rust type string to its Assura equivalent.
- rust_
type_ to_ assura_ lenient - Like
rust_type_to_assura, but maps unrecognized Rust types toUnknowninstead of passing them through. Also handlesimpl Trait,dyn Trait,Self, and lifetime annotations that the standard mapper does not.