Skip to content

pw: Impl FromIterator + Extend for Properties

Allows for easy and idiomatic conversion from compatible collections to Properties.

let mut kv = std::collections::HashMap::new();
kv.insert("K0", "V1");

let props = Properties::from_iter(kv.clone());
let mut props = kv.clone().into_iter().collect::<Properties>();
props.extend(kv);

Merge request reports

Loading