pub type Map = HashMap<String, Value, BuildHasherDefault<FnvHasher>>;Expand description
The map behind Value::Map and Context.
With the std feature (the default) this is fnv::FnvHashMap, the
type every release before the workspace split used. Without std
it is alloc::collections::BTreeMap. Like serde_json::Map, the
concrete type therefore depends on a feature: code that must build
both ways should construct maps with Map::default() and use only
the methods both types share (insert, get, iter, len, …).
§Examples
use staticweaver_core::context::{Map, Value};
let mut m = Map::default();
let _ = m.insert("k".to_string(), Value::from(1));
assert_eq!(Value::Map(m).get_path("k"), Some(&Value::Number(1)));Aliased Type§
pub struct Map { /* private fields */ }