pub struct Program {
pub predicates: BTreeMap<String, Predicate>,
pub queries: BTreeMap<String, Query>,
pub rules: BTreeMap<String, Rule>,
}
Expand description
IR Program representation This is the structure to be handed off to the code generator.
Fields§
§predicates: BTreeMap<String, Predicate>
Map from predicate name to IR predicate
queries: BTreeMap<String, Query>
Map from query name to IR query
rules: BTreeMap<String, Rule>
Map from rule name to IR rule
Implementations§
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnwindSafe for Program
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more