kv_derive_impl/
into_vec.rs

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