pub fn find(&self, device: dev_t, inode: ino_t) -> Option<EmuFileSharedPtr> {
        let file_id = FileId::new(device, inode);
        let maybe_file_weak_ptr = self.files.get(&file_id);
        maybe_file_weak_ptr.map(|file_weak_ptr| file_weak_ptr.upgrade().unwrap())
    }
/// Return an already-existing emulated file for the given device/inode.
/// Returns null if not found.
Return an already-existing emulated file for the given device/inode.
Returns null if not found.
Return an already - existing emulated file for the given device / inode . Returns null if not found .
pub fn find(&self, device: dev_t, inode: ino_t) -> Option<EmuFileSharedPtr> {
        let file_id = FileId::new(device, inode);
        let maybe_file_weak_ptr = self.files.get(&file_id);
        maybe_file_weak_ptr.map(|file_weak_ptr| file_weak_ptr.upgrade().unwrap())
    }
pub fn find ( & self , device : dev_t , inode : ino_t ) -> Option < EmuFileSharedPtr > { let file_id = FileId :: new ( device , inode ) ; let maybe_file_weak_ptr = self . files . get ( & file_id ) ; maybe_file_weak_ptr . map ( | file_weak_ptr | file_weak_ptr . upgrade ( ) . unwrap ( ) ) }
Return an already-existing emulated file for the given device/inode.
Return an already - existing emulated file for the given device / inode .
&self
device
dev_t
inode
ino_t