fn set_attr(
map: &mut FxHashMap<NixString, Value>,
key: NixString,
value: Value,
pos: &mut FxHashMap<NixString, Span>,
span: Option<Span>,
) -> Result<(), ErrorKind>Expand description
Set an attribute on an in-construction attribute set, while checking against duplicate keys.