Module flux_fhir_analysis::conv

source Β·
Expand description

Conversion from types in fhir to types in rty

Conversion assumes well-formedness and will panic if type are not well-formed. Among other things, well-formedness implies:

  1. Names are bound correctly.
  2. Refinement parameters appear in allowed positions. This is particularly important for refinement predicates, aka abstract refinements, since the syntax in rty has syntactic restrictions on predicates.
  3. Refinements are well-sorted.

Modules§

  • errors πŸ”’
  • Check whether two refinemnt types/signatures are structurally compatible.

Structs§

Enums§

  • LayerKind πŸ”’
    Whether the list of parameters in a layer is converted into a list of bound variables or coalesced into a single parameter of adt sort.
  • LookupResultKind πŸ”’

Traits§

  • We do conversion twice: once before sort checking when we don’t have elaborated information and then again after sort checking after all information has been elaborated. This is the interface to configure conversion for both phases.
  • An interface to the information elaborated during sort checking. We mock these results in the first conversion phase during sort checking.

Functions§