Module chalk_solve::display
source Β· ModulesΒ§
- bounds πWriter logic for
whereclauses and other bounds. - identifiers πWriter logic for simple IDs
- items πWriter logic for top level items.
- render_trait π
RenderAsRusttrait and related utils. - state πPersistent state passed down between writers.
- stub πContains a
LoggingIrDatabasewhich returns stub versions of everything queried. - ty πWriter logic for types.
- utils πRender utilities which donβt belong anywhere else.
StructsΒ§
- Like a BoundVar, but with the debrujin index inverted so as to create a canonical name we can use anywhere for each bound variable.
- Writer state which persists across multiple writes.
FunctionsΒ§
- Displays a set of bounds, all targeting
Self, as just the trait names, separated by+. - Displays a trait with its parameters and a single associated type - something like
IntoIterator<Item=T>. - Displays a type with its parameters - something like
AsRef<T>, OpaqueTyName, orAdtName<Value>. - Processes a name given by an
Internerdebug method into something usable by thedisplaymodule. - write_item π
- Writes out each item recorded by a
LoggingRustIrDatabase. - Writes stubs for items which were referenced by name, but for which we didnβt directly access. For instance, traits mentioned in where bounds which are only usually checked during well-formedness, when we werenβt recording well-formedness.