cairo_lang_sierra::edit_state

Function put_results

Source
pub fn put_results<'a, V>(
    state: OrderedHashMap<VarId, V>,
    results: impl Iterator<Item = (&'a VarId, V)>,
) -> Result<OrderedHashMap<VarId, V>, EditStateError>
Expand description

Adds the given pairs to map with var ids as keys, failing if some variable is overridden.