{"id":20368826,"url":"https://github.com/ureeves/iter-diff","last_synced_at":"2025-12-02T10:03:20.984Z","repository":{"id":62441209,"uuid":"462084536","full_name":"ureeves/iter-diff","owner":"ureeves","description":"Differences between iterators","archived":false,"fork":false,"pushed_at":"2022-02-25T23:00:29.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T01:49:12.798Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ureeves.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-22T00:55:25.000Z","updated_at":"2022-02-22T00:56:59.000Z","dependencies_parsed_at":"2022-11-01T22:01:57.487Z","dependency_job_id":null,"html_url":"https://github.com/ureeves/iter-diff","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ureeves/iter-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ureeves%2Fiter-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ureeves%2Fiter-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ureeves%2Fiter-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ureeves%2Fiter-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ureeves","download_url":"https://codeload.github.com/ureeves/iter-diff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ureeves%2Fiter-diff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27450522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-02T02:00:06.387Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T00:43:18.165Z","updated_at":"2025-12-02T10:03:20.951Z","avatar_url":"https://github.com/ureeves.png","language":"Rust","readme":"\n# iter-diff\n\n#### Differences between iterators\n\n[![CI][ci-badge]][ci-url]\n[![codecov][codecov-badge]][codecov-url]\n[![docs.rs][docs-badge]][docs-url]\n\n[ci-badge]: https://img.shields.io/github/workflow/status/ureeves/iter-diff/CI?logo=github\n[ci-url]: https://github.com/ureeves/iter-diff/actions/workflows/main.yml\n[codecov-badge]: https://img.shields.io/codecov/c/gh/ureeves/iter-diff?logo=codecov\n[codecov-url]: https://codecov.io/gh/ureeves/iter-diff\n[docs-badge]: https://img.shields.io/docsrs/iter-diff?color=blue\u0026logo=rust\u0026logoColor=orange\n[docs-url]: https://docs.rs/iter-diff\n\n---\n\nThe `IterDiff` trait can be used to iterate through the differences between\ntwo iterators. The differences between each element are enumerated by `Diff`.\nThe variants of the enum express the changes one would need to make to the\nleft-hand iterator in order to attain the right-hand iterator.\n\n```rust\nuse iter_diff::prelude::*;\n\nlet a = [0, 1, 2, 3];\nlet b = [0, 2, 2];\n\nlet diffs: Vec\u003c_\u003e = a.iter_diff(b).collect();\nassert_eq!(diffs.len(), 4);\n\nassert_eq!(diffs[0], Diff::Keep);\nassert_eq!(diffs[1], Diff::Change(2));\nassert_eq!(diffs[2], Diff::Keep);\nassert_eq!(diffs[3], Diff::Remove);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fureeves%2Fiter-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fureeves%2Fiter-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fureeves%2Fiter-diff/lists"}