forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 18
Proposal for predicate language
catamorphism edited this page Aug 11, 2011
·
6 revisions
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.