collections.diff
Compare two lists of records by key: which were added, which removed, and which changed and in what fields.
diff_by_key in Rust2 capabilities
diff_by_key in Rustmatch_bank_lines in Rust