AllocationList::-

fn -(
    lhs: AllocationList,
    rhs: AllocationList
) -> AllocationList

Returns a new allocation list with all of the allocations from lhs which are not present in rhs.

Examples

Here are graphs of two distinct allocation lists:

And here's how they look when merged through the - operator:

let lhs = allocations()
    .only_temporary()
    .only_deallocated_until_at_most(data().runtime() * 0.7);

let rhs = allocations()
    .only_temporary()
    .only_allocated_after_at_least(data().runtime() * 0.3);

graph()
    .add(lhs - rhs)
    .save();