pub fn find<'c, 's: 'c>(&'s self,
                            conds: &'c [cmp::Condition<'c, T>])
                            -> Box<Iterator<Item = &'s R> + 'c> {
        let is_a_match = move |r: &&'s _| conds.iter().all(|c| c.matches(*r));
        Box::new(self.using_index(conds)
            .map(move |rowi| &self.rows[&rowi])
            .filter(is_a_match))
    }
/// Returns an iterator that yields all rows matching all the given `Condition`s.
///
/// This method will automatically determine what index to use to satisfy this query. It
/// currently uses a fairly simple heuristic: it picks the index that: a) is over one of
/// columns being filtered on; b) supports the operation for that filter; and c) has the lowest
/// expected number of rows for a single value. This latter metric is generally the total
/// number of rows divided by the number of entries in the index. See `EqualityIndex::estimate`
/// for details.
Returns an iterator that yields all rows matching all the given `Condition`s.
This method will automatically determine what index to use to satisfy this query. It
currently uses a fairly simple heuristic: it picks the index that: a) is over one of
columns being filtered on; b) supports the operation for that filter; and c) has the lowest
expected number of rows for a single value. This latter metric is generally the total
number of rows divided by the number of entries in the index. See `EqualityIndex::estimate`
for details.
Returns an iterator that yields all rows matching all the given ` Condition ` s . This method will automatically determine what index to use to satisfy this query . It currently uses a fairly simple heuristic : it picks the index that : a ) is over one of columns being filtered on ; b ) supports the operation for that filter ; and c ) has the lowest expected number of rows for a single value . This latter metric is generally the total number of rows divided by the number of entries in the index . See ` EqualityIndex :: estimate ` for details .
pub fn find<'c, 's: 'c>(&'s self,
                            conds: &'c [cmp::Condition<'c, T>])
                            -> Box<Iterator<Item = &'s R> + 'c> {
        let is_a_match = move |r: &&'s _| conds.iter().all(|c| c.matches(*r));
        Box::new(self.using_index(conds)
            .map(move |rowi| &self.rows[&rowi])
            .filter(is_a_match))
    }
pub fn find < ' c , ' s : ' c > ( & ' s self , conds : & ' c [ cmp :: Condition < ' c , T > ] ) -> Box < Iterator < Item = & ' s R > + ' c > { let is_a_match = move | r : & & ' s _ | conds . iter ( ) . all ( | c | c . matches ( * r ) ) ; Box :: new ( self . using_index ( conds ) . map ( move | rowi | & self . rows [ & rowi ] ) . filter ( is_a_match ) ) }
Returns an iterator that yields all rows matching all the given `Condition`s.
Returns an iterator that yields all rows matching all the given ` Condition ` s .
&'s self
conds
&'c [cmp::Condition<'c, T>]
&'s self
conds
&'c [cmp::Condition<'c, T>]