Module chalk_solve::display
source · Modules§
- bounds πWriter logic for
where
clauses and other bounds. - identifiers πWriter logic for simple IDs
- items πWriter logic for top level items.
- render_trait π
RenderAsRust
trait and related utils. - state πPersistent state passed down between writers.
- stub πContains a
LoggingIrDatabase
which 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
Interner
debug method into something usable by thedisplay
module. - 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.