File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ use binaryninjacore_sys::{
1111 BNProjectFileSetFolder , BNProjectFileSetName ,
1212} ;
1313use std:: fmt:: Debug ;
14+ use std:: hash:: Hash ;
1415use std:: path:: { Path , PathBuf } ;
1516use std:: ptr:: { null_mut, NonNull } ;
1617use std:: time:: SystemTime ;
@@ -155,6 +156,20 @@ impl Debug for ProjectFile {
155156unsafe impl Send for ProjectFile { }
156157unsafe impl Sync for ProjectFile { }
157158
159+ impl PartialEq for ProjectFile {
160+ fn eq ( & self , other : & Self ) -> bool {
161+ self . id ( ) == other. id ( )
162+ }
163+ }
164+
165+ impl Eq for ProjectFile { }
166+
167+ impl Hash for ProjectFile {
168+ fn hash < H : std:: hash:: Hasher > ( & self , state : & mut H ) {
169+ self . id ( ) . hash ( state) ;
170+ }
171+ }
172+
158173impl ToOwned for ProjectFile {
159174 type Owned = Ref < Self > ;
160175
You can’t perform that action at this time.
0 commit comments