pub trait Map: Object { }
Expand description

Convenience trait to simplify passing a Value::Map.

Examples

fn accepts_map<M: Map>(map: M) {}

accepts_map(vec![("test", "test")]);

let mut map = BTreeMap::new();
map.insert("test", "test");
accepts_map(map);

Implementations on Foreign Types

Implementors