| Crates.io | visit_diff |
| lib.rs | visit_diff |
| version | 0.1.1 |
| created_at | 2019-02-17 23:51:44.195953+00 |
| updated_at | 2019-06-22 15:35:36.32806+00 |
| description | Efficiently finding differences between data structures. |
| homepage | |
| repository | https://github.com/cbiffle/visit-diff |
| max_upload_size | |
| id | 115490 |
| size | 89,726 |
visit_diff: analyzing structural differences in RustThis is a library for easily comparing Rust data structures to detect differences. This is useful, for example, when reporting a test failure.
The simplest use case:
Put a #[derive(Diff)] annotation on your type.
Replace assert_eq! with assert_eq_diff!.
Now your error messages will highlight diffs instead of making you hunt for them manually.
See the API docs on the module for more.