Graph.merge

Destructively merges another graph into this one.

The resulting graph's exports and imports will be the concatenation of this one's and the consumed's. Therefore, graph merging is not a commutative operation with respect to import/export interfaces, even if it is when considering only their internals.

struct Graph
@nogc nothrow
merge

Return Value

Type: err_t

Zero on success, non-zero on failure.

Meta

Version

TODO: Add a "merge spec" parameter which controls how imports/exports are merged.