pub struct Stratification {
pub strata: Vec<Stratum>,
pub rule_stratum: Vec<usize>,
}Expand description
Rule-level stratification of a finite Datalog program.
Dependencies connect a producer to a consumer only when the producer’s complete head pattern can unify with a body atom. EDB facts are available before stratum zero. Rule indices refer to the analyzed program’s rule order.
Fields§
§strata: Vec<Stratum>Strata in evaluation order; close each to a fixed point before advancing.
rule_stratum: Vec<usize>One stratum index for each rule, in program order.
Implementations§
Source§impl Stratification
impl Stratification
Sourcepub fn stratum_of_rule(&self, rule_index: usize) -> Option<usize>
pub fn stratum_of_rule(&self, rule_index: usize) -> Option<usize>
Return the stratum of a rule, or None for an out-of-range rule index.
Trait Implementations§
Source§impl Clone for Stratification
impl Clone for Stratification
Source§impl Debug for Stratification
impl Debug for Stratification
Source§impl<'de> Deserialize<'de> for Stratification
impl<'de> Deserialize<'de> for Stratification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Stratification
Source§impl PartialEq for Stratification
impl PartialEq for Stratification
Source§impl Serialize for Stratification
impl Serialize for Stratification
impl StructuralPartialEq for Stratification
Auto Trait Implementations§
impl Freeze for Stratification
impl RefUnwindSafe for Stratification
impl Send for Stratification
impl Sync for Stratification
impl Unpin for Stratification
impl UnsafeUnpin for Stratification
impl UnwindSafe for Stratification
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