diff options
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/tags.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rust/src/tags.rs b/rust/src/tags.rs index 4817f596..a56b7a18 100644 --- a/rust/src/tags.rs +++ b/rust/src/tags.rs @@ -203,6 +203,14 @@ impl Debug for TagType { } } +impl PartialEq for TagType { + fn eq(&self, other: &Self) -> bool { + self.id() == other.id() + } +} + +impl Eq for TagType {} + unsafe impl RefCountable for TagType { unsafe fn inc_ref(handle: &Self) -> Ref<Self> { Ref::new(Self { |
