Skip to content

ewyler/compare_by_address_derive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 {
  // ...
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages