pearlite

Macro pearlite 

pearlite!() { /* proc-macro */ }
Expand description

Enables pearlite syntax, granting access to Pearlite specific operators and syntax

This is meant to be used in logic functions.

ยงExample

#[logic]
fn all_ones(s: Seq<Int>) -> bool {
    // Allow access to `forall` and `==>` among other things
    pearlite! {
        forall<i> 0 <= i && i < s.len() ==> s[i] == 1
    }
}