We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
PartialEq
Eq
Hash
Project
1 parent 8e10936 commit f0d2eceCopy full SHA for f0d2ece
rust/src/project.rs
@@ -3,7 +3,8 @@ pub mod folder;
3
4
use std::ffi::c_void;
5
use std::fmt::Debug;
6
-use std::path::Path;
+use std::hash::Hash;
7
+use std::path::{Path, PathBuf};
8
use std::ptr::{null_mut, NonNull};
9
use std::time::{Duration, SystemTime, UNIX_EPOCH};
10
@@ -636,6 +637,20 @@ impl Debug for Project {
636
637
}
638
639
640
+impl PartialEq for Project {
641
+ fn eq(&self, other: &Self) -> bool {
642
+ self.id() == other.id()
643
+ }
644
+}
645
+
646
+impl Eq for Project {}
647
648
+impl Hash for Project {
649
+ fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
650
+ self.id().hash(state);
651
652
653
654
impl ToOwned for Project {
655
type Owned = Ref<Self>;
656
0 commit comments