Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeenobit committed Mar 16, 2024
1 parent a825411 commit 1cc8b8e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ impl<T: Kind> PartialEq for Instance<T> {
}
}

impl<T: Kind> PartialEq<Entity> for Instance<T> {
fn eq(&self, other: &Entity) -> bool {
self.0 == *other
}
}

impl<T: Kind> Eq for Instance<T> {}

impl<T: Kind> PartialOrd for Instance<T> {
Expand Down

0 comments on commit 1cc8b8e

Please sign in to comment.