compare_by_address_derive 0.1.1

Derive macro for comparing and hashing structs/unions/enums by address
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 5.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 267.82 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ewyler

Defines PartialEq, Eq, and Hash to compare the given struct/union/enum by address to other instances. This allows you to easily work with these items in hashing contexts (HashSets, HashMaps, etc.) whereby equality is defined by instance irrespective of content.

Example usage

use compare_by_address_derive::CompareByAddress;

#[derive(CompareByAddress)]
struct SomeStruct {
  // ...
}