lt_delta 0.2.0

A type Delta<T> representing a source, a target, or both.
Documentation
  • Coverage
  • 100%
    30 out of 30 items documented21 out of 24 items with examples
  • Size
  • Source code size: 21.25 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 496.74 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Formkunft/rust-delta
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • florianpircher

Delta<T>

A type representing a source element, a target element, or both a source and a target element.

This type represents an inclusive OR relation: Either a source element is available, or a target element is available, or both are available. Delta behaves similar to Option, but instead of representing 0 or 1 elements, it represents 1 or 2 elements.

Implementation

The source and target are described as the two sides of a delta. Both sides are accessible via optional source and target methods. Convenient methods like resolve and merge also provide access to the elements.

Transform a Delta value to a different Delta value using map, map_any, or map_all.