derive Hash for Atom and similar types

This commit is contained in:
John Turner
2025-11-23 03:30:37 +00:00
parent f8149b43d4
commit 5be1e5c37a
2 changed files with 29 additions and 25 deletions

View File

@@ -4,10 +4,10 @@ use get::Get;
mod parsers;
#[derive(Clone, Debug, PartialEq, Eq, Get)]
#[derive(Clone, Debug, PartialEq, Eq, Hash, Get)]
pub struct UseFlag(#[get(method = "name", kind = "deref")] String);
#[derive(Clone, Debug, PartialEq, Eq, Get)]
#[derive(Clone, Debug, PartialEq, Eq, Hash, Get)]
pub struct IUseFlag {
default: bool,
flag: UseFlag,