Skip to main content

merge

Function merge 

Source
pub fn merge(base: Value, overlay: Value) -> Value
Expand description

Deep-merge overlay onto base, replacing arrays wholesale.

Objects merge recursively; on a key collision the overlay value wins (last-wins scalars). Every array is replaced by the overlay. Use merge_with to concatenate selected arrays instead.