diff options
| author | Mason Reed <msr@emesare.com> | 2024-02-25 20:58:29 -0500 |
|---|---|---|
| committer | Kyle Martin <krm504@nyu.edu> | 2024-03-20 15:16:00 -0400 |
| commit | 3553aae6ffb2affb1808359da79a4c5eb9c36e86 (patch) | |
| tree | 802ef86bd259a08430c6b4a4fd955b3c441dec23 /rust/src | |
| parent | 0857fae20232f5567fe228e78eff70aaeab77116 (diff) | |
Require Hash & Eq implementations for Register and Flag implementations
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/architecture.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs index ee0e3cd3..9a7b3e72 100644 --- a/rust/src/architecture.rs +++ b/rust/src/architecture.rs @@ -190,7 +190,7 @@ pub trait RegisterInfo: Sized { fn implicit_extend(&self) -> ImplicitRegisterExtend; } -pub trait Register: Sized + Clone + Copy { +pub trait Register: Sized + Clone + Copy + Hash + Eq { type InfoType: RegisterInfo<RegType = Self>; fn name(&self) -> Cow<str>; @@ -230,7 +230,7 @@ pub trait RegisterStack: Sized + Clone + Copy { fn id(&self) -> u32; } -pub trait Flag: Sized + Clone + Copy { +pub trait Flag: Sized + Clone + Copy + Hash + Eq { type FlagClass: FlagClass; fn name(&self) -> Cow<str>; |
