pub fn lazy<II>(rules: II) -> Self
    where
        II: IntoIterator<Item = PersistenceThreshold>,
    {
        let mut rules = rules.into_iter().collect::<Vec<_>>();
        rules.sort_by(|a, b| a.number_of_changes.cmp(&b.number_of_changes));
        Self(KeyValuePersistenceInner::Lazy(rules))
    }
/// Returns a ruleset that lazily commits data based on a list of thresholds.
Returns a ruleset that lazily commits data based on a list of thresholds.
Returns a ruleset that lazily commits data based on a list of thresholds .
pub fn lazy<II>(rules: II) -> Self
    where
        II: IntoIterator<Item = PersistenceThreshold>,
    {
        let mut rules = rules.into_iter().collect::<Vec<_>>();
        rules.sort_by(|a, b| a.number_of_changes.cmp(&b.number_of_changes));
        Self(KeyValuePersistenceInner::Lazy(rules))
    }
pub fn lazy < II > ( rules : II ) -> Self where II : IntoIterator < Item = PersistenceThreshold > , { let mut rules = rules . into_iter ( ) . collect :: < Vec < _ > > ( ) ; rules . sort_by ( | a , b | a . number_of_changes . cmp ( & b . number_of_changes ) ) ; Self ( KeyValuePersistenceInner :: Lazy ( rules ) ) }
Returns a ruleset that lazily commits data based on a list of thresholds.
Returns a ruleset that lazily commits data based on a list of thresholds .
rules
II
rules
II