pub fn entries_from_row_ids(&self, row_ids: &[RowId], names: &[&str]) -> Vec<Vec<Entry>> {
        let names = names.iter().map(|s| s.to_string()).collect::<Vec<String>>();
        let mut result: Vec<Vec<Entry>> = vec![];
        for row_id in row_ids {
            let entries = &self.by_row_id[&row_id];

            let mut ordered: Vec<Entry> = vec![];
            for name in &names {
                for entry in entries.iter().filter(|entry| &entry.name == name) {
                    ordered.push(entry.clone());
                }
            }

            result.push(ordered);
        }
        result
    }
/// Returns entries for given row_ids.
Returns entries for given row_ids.
Returns entries for given row_ids .
pub fn entries_from_row_ids(&self, row_ids: &[RowId], names: &[&str]) -> Vec<Vec<Entry>> {
        let names = names.iter().map(|s| s.to_string()).collect::<Vec<String>>();
        let mut result: Vec<Vec<Entry>> = vec![];
        for row_id in row_ids {
            let entries = &self.by_row_id[&row_id];
            let mut ordered: Vec<Entry> = vec![];
            for name in &names {
                for entry in entries.iter().filter(|entry| &entry.name == name) {
                    ordered.push(entry.clone());
                }
            }
            result.push(ordered);
        }
        result
    }
pub fn entries_from_row_ids ( & self , row_ids : & [ RowId ] , names : & [ & str ] ) -> Vec < Vec < Entry > > { let names = names . iter ( ) . map ( | s | s . to_string ( ) ) . collect :: < Vec < String > > ( ) ; let mut result : Vec < Vec < Entry > > = vec ! [ ] ; for row_id in row_ids { let entries = & self . by_row_id [ & row_id ] ; let mut ordered : Vec < Entry > = vec ! [ ] ; for name in & names { for entry in entries . iter ( ) . filter ( | entry | & entry . name == name ) { ordered . push ( entry . clone ( ) ) ; } } result . push ( ordered ) ; } result }
Returns entries for given row_ids.
Returns entries for given row_ids .
&self
row_ids
&[RowId]
names
&[&str]
&self
row_ids
&[RowId]
names
&[&str]