Power Fx interpreter for Rust
This crate provides an embedded Power Fx interpreter for Rust projects.
Getting started
Install the package.
cargo add powerfx
Status
This library is still an an alpha status. The following functions have been implemented:
- Table
- First
- Last
- Index
- Filter
- Set
- If
- And
- Or
- Not
- Abs
- Sqrt
- Left
- Mid
- Right
- Upper
- Lower
- Average
- Sum
- Min
- Max
Examples
The following example illustrates adding two constant numbers.
use ;
This can also be done with variables.
let engine = new;
let mut session = new;
session.set_variable;
session.set_variable;
let result = engine.evaluate.unwrap;
assert_eq!;
For more examples, please see the Examples Folder