Function fvm_ipld_amt::diff
source · pub fn diff<Old, New, OldBS, NewBS>(
prev_amt: &Amt<Old, OldBS>,
curr_amt: &Amt<New, NewBS>,
) -> Result<Vec<Change<Old, New>>>where
Old: Serialize + DeserializeOwned + Clone,
New: Serialize + DeserializeOwned + Clone,
OldBS: Blockstore,
NewBS: Blockstore,
Expand description
Returns a set of changes that transform node ‘a’ into node ‘b’. Ported from https://github.com/filecoin-project/go-amt-ipld/blob/master/diff.go#L41