pub fn selected_sort_key(&self, select_keys: Vec<&str>) -> SortKey<'a> {
        let keys: IndexMap<&'a str, SortOptions> = self
            .columns
            .iter()
            .filter_map(|(col, options)| {
                if select_keys.iter().any(|key| key == col) {
                    Some((*col, *options))
                } else {
                    None
                }
            })
            .collect();

        SortKey { columns: keys }
    }
/// Returns a subset of the sort key that includes only the given columns
Returns a subset of the sort key that includes only the given columns
Returns a subset of the sort key that includes only the given columns
pub fn selected_sort_key(&self, select_keys: Vec<&str>) -> SortKey<'a> {
        let keys: IndexMap<&'a str, SortOptions> = self
            .columns
            .iter()
            .filter_map(|(col, options)| {
                if select_keys.iter().any(|key| key == col) {
                    Some((*col, *options))
                } else {
                    None
                }
            })
            .collect();
        SortKey { columns: keys }
    }
pub fn selected_sort_key ( & self , select_keys : Vec < & str > ) -> SortKey < ' a > { let keys : IndexMap < & ' a str , SortOptions > = self . columns . iter ( ) . filter_map ( | ( col , options ) | { if select_keys . iter ( ) . any ( | key | key == col ) { Some ( ( * col , * options ) ) } else { None } } ) . collect ( ) ; SortKey { columns : keys } }
Returns a subset of the sort key that includes only the given columns
Returns a subset of the sort key that includes only the given columns
&self
select_keys
Vec<&str>
&self
select_keys
Vec<&str>