Complete API documentation for Rust Rule Engine.
Complete public API reference.
Coverage:
- Engine API
- Facts API
- Rules API
- Knowledge Base API
- All public types and methods
Use when: Looking up specific API methods
Complete reference for backward chaining query language.
Coverage:
- Query syntax
- Nested queries (v1.11.0+)
- Query optimization (v1.11.0+)
- Aggregation functions
- Negation and disjunction
- Action handlers
- All query features
Use when: Writing backward chaining queries
Quick reference for GRL parser.
Coverage:
- Common syntax patterns
- Parser rules
- Quick examples
- Troubleshooting
Use when: Need quick syntax lookup
Forward Chaining → API Reference - Engine, Facts, Rules
Backward Chaining → GRL Query Syntax - Queries, Goals, Proofs
Parsing → Parser Cheat Sheet - GRL syntax
Creating an Engine
use rust_rule_engine::Engine;
let engine = Engine::new();Adding Rules
engine.add_rule_from_string(grl_string)?;Writing Queries
query "MyQuery" {
goal: pattern WHERE subquery
enable-optimization: true
}
Parsing GRL → Parser Cheat Sheet
| Version | Features | Documentation |
|---|---|---|
| 1.11.0 | Nested queries, Query optimization | GRL Query Syntax |
| 1.10.0 | Disjunction (OR) | GRL Query Syntax |
| 1.9.0 | Explanation system | GRL Query Syntax |
| 1.8.0 | Negation (NOT) | GRL Query Syntax |
| 1.7.0 | Aggregation functions | GRL Query Syntax |
- Getting Started - Quick start guide
- Core Features - GRL syntax and features
- Guides - How-to guides and best practices
- Can't find an API? → Check API Reference
- Query not working? → See GRL Query Syntax
- Parser error? → Use Parser Cheat Sheet
- Still stuck? → Troubleshooting Guide