1
2
3
4
5
6
7
8
/// Converts the structure into an iterator or vector of key-value pairs.
pub trait IntoVec: Sized {
    fn into_iter(self) -> Box<dyn Iterator<Item = (String, String)>>;

    fn into_vec(self) -> Vec<(String, String)> {
        self.into_iter().collect()
    }
}