Skip to content

Proposal for predicate language

catamorphism edited this page Aug 11, 2011 · 6 revisions

Predicate language

Preliminaries

Typestate constraints are predicates: applications of a Rust function to one or more arguments. So a predicate has the form:

check(p(x, y, z));

where p must be defined as a known function, and x (and so on) must be names of local slots or literals. The part inside the check is the constraint.

All Categories:

Clone this wiki locally