fn compute_delta(&self, other: &Recipe) -> (Vec<QueryID>, Vec<QueryID>) {
        let mut added_queries: Vec<QueryID> = Vec::new();
        let mut removed_queries = Vec::new();
        for qid in self.expression_order.iter() {
            if !other.expressions.contains_key(qid) {
                added_queries.push(*qid);
            }
        }
        for qid in other.expression_order.iter() {
            if !self.expressions.contains_key(qid) {
                removed_queries.push(*qid);
            }
        }

        (added_queries, removed_queries)
    }
/// Work out the delta between two recipes.
/// Returns two sets of `QueryID` -> `SqlQuery` mappings:
/// (1) those queries present in `self`, but not in `other`; and
/// (2) those queries present in `other` , but not in `self`.
Work out the delta between two recipes.
Work out the delta between two recipes .
fn compute_delta(&self, other: &Recipe) -> (Vec<QueryID>, Vec<QueryID>) {
        let mut added_queries: Vec<QueryID> = Vec::new();
        let mut removed_queries = Vec::new();
        for qid in self.expression_order.iter() {
            if !other.expressions.contains_key(qid) {
                added_queries.push(*qid);
            }
        }
        for qid in other.expression_order.iter() {
            if !self.expressions.contains_key(qid) {
                removed_queries.push(*qid);
            }
        }
        (added_queries, removed_queries)
    }
fn compute_delta ( & self , other : & Recipe ) -> ( Vec < QueryID > , Vec < QueryID > ) { let mut added_queries : Vec < QueryID > = Vec :: new ( ) ; let mut removed_queries = Vec :: new ( ) ; for qid in self . expression_order . iter ( ) { if ! other . expressions . contains_key ( qid ) { added_queries . push ( * qid ) ; } } for qid in other . expression_order . iter ( ) { if ! self . expressions . contains_key ( qid ) { removed_queries . push ( * qid ) ; } } ( added_queries , removed_queries ) }
Work out the delta between two recipes.
Work out the delta between two recipes .
&self
other
&Recipe
&self
other
&Recipe