12 releases

0.7.0-alpha.6 Mar 3, 2023
0.7.0-alpha.4 Nov 24, 2022
0.6.3 Aug 17, 2023
0.6.2 Mar 9, 2023
0.6.1 Jun 30, 2022

#305 in Data structures

Download history 44/week @ 2024-02-16 47/week @ 2024-02-23 31/week @ 2024-03-01 17/week @ 2024-03-08 27/week @ 2024-03-15 9/week @ 2024-03-22 27/week @ 2024-03-29 31/week @ 2024-04-05 5/week @ 2024-04-12

63 downloads per month

Apache-2.0

39KB
1K SLoC

IOTA Identity - Diff

This module implements a Diff trait. This gives data structures the ability to compare themselves to another data structure of the same type over time. The library pairs off with identity_diff_derive, which implements a derive macro for the Diff Trait.

Types supported include HashMap, Option, String, serde_json::Value, Vec and primitives such as i8/u8 up to usize and isize, as well as the unit type (), bool, and char types. Structs and Enums are supported via identity_diff_derive and can be composed of any number of these types.

Dependencies

~0.7–1.5MB
~34K SLoC