#predicates #literals #eval #boolean #expr #evaluate #expression

yanked simple_predicates-rs

A simple local configuration management utility

0.1.0 May 1, 2021

#9 in #predicates

MIT/Apache

19KB
422 lines

simple_predicates -- a library for modelling simple boolean predicates

Basic usage is to implement Eval for your boolean literal type, then construct Exprs using the boolean literals. To evaluate the truth value of the expression, call the eval method, passing in any contextual data required to resolve the predicate.

Installation

Add the following to your Cargo.toml:

[dependencies]
simple_predicates = "0.1"

License

Stall is licenced with the MIT license or the Apache version 2.0 license, at your option.


lib.rs:

Simple Boolean Predicates

Dependencies

~170KB