Expand description
Functions for pretty printing Conjure models.
Most things can be pretty printed using Display; however some, notably collections
can not, for example, Vec
Functionsยง
- format_
domain_ with_ representation - Print
domainas usual, but withrepras its top-level representation preference. - pretty_
clauses - Pretty prints a
Vec<CnfClause>as a list of clauses as disjunctions - pretty_
domain_ letting_ declaration - Pretty prints, in essence syntax, the declaration for the given domain letting.
- pretty_
expression_ domain_ annotation - Pretty prints an expression with an Essence-style domain annotation.
- pretty_
expression_ type_ annotation - Pretty prints an expression with an Essence-style type annotation.
- pretty_
expressions_ as_ conjunction - Pretty prints a
Vec<Expression>as if it were a conjunction. - pretty_
expressions_ as_ top_ level - Pretty prints a
Vec<Expression>as if it were a top level constraint list in asuch that. - pretty_
find_ with_ representation - Pretty-print a find/findAux declaration with
reprannotated on its domain. - pretty_
value_ letting_ declaration - Pretty prints, in essence syntax, the declaration for the given value letting.
- pretty_
variable_ declaration - Pretty prints, in essence syntax, the variable declaration for the given symbol.
- pretty_
vec - Pretty prints a
Vec<T>in a vector like syntax.