// Use this: let keys = self.into_keys().collect::<Vec<YOUR TYPE>>() let values = self.into_values().collect::<Vec<YOUR TYPE>>()