ebarnard / rust-plist

A rusty plist parser.
MIT License
71 stars 42 forks source link

Implements HashMap to Dictionary. #73

Closed DiegoMagdaleno closed 2 years ago

DiegoMagdaleno commented 2 years ago

This pull request implements

impl<K: Into<String>, V: Into<Value>> FromIterator<(K, V)> for Dictionary

So one can do:

let dict: Dictionary = hash_map.into_iter().collect();

It adds the proper tests to verify everything works.

Closes #63