Skip to main content

Module type_env

Module type_env 

Source

ModulesΒ§

place_ty πŸ”’
pretty πŸ”’

StructsΒ§

BasicBlockEnv
BasicBlockEnvData πŸ”’
BasicBlockEnvShape
TypeEnv
TypeEnvBind πŸ”’
TypeEnvTrace
A very explicit representation of TypeEnv for debugging/tracing/serialization ONLY.

EnumsΒ§

LocInfo πŸ”’
PtrToRefBound πŸ”’

FunctionsΒ§

generalize_fn_sig πŸ”’
Generalizes a fn pointer signature to one with the same (rust) shape where all refinements are holes, e.g., for<n> fn(i32[n]) -> i32[n + 1] becomes fn({v. i32[v] | *}) -> {v. i32[v] | *}. The refinement params of the signature are dropped, and so are the requires, ensures and no_panic (which could mention them). The region vars are kept: they come before the refinement params in the binder, so dropping the latter doesn’t shift them.
loc_info πŸ”’
loc_name πŸ”’
loc_span πŸ”’