Skip to content

Commit

Permalink
better docs
Browse files Browse the repository at this point in the history
  • Loading branch information
oflatt committed Aug 6, 2024
1 parent 3847871 commit 1d8c666
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ impl Display for Id {
#[derive(Clone, Debug)]
/// The egglog internal representation of already compiled rules
pub(crate) enum Ruleset {
/// Represents a ruleset with a set of rules.
/// Use an [`IndexMap`] to ensure egglog is deterministic.
/// Rules added to the [`IndexMap`] first apply their
/// actions first.
Rules(Symbol, IndexMap<Symbol, CompiledRule>),
/// A combined ruleset may contain other rulesets.
Combined(Symbol, Vec<Symbol>),
}

Expand Down

0 comments on commit 1d8c666

Please sign in to comment.