fn find(&self, path: &Nfc) -> Option<usize> {
        if path.starts_with(&self.base_path.as_str()) {
            let file_path = path.split_at(self.base_path.len()).1;
            return self
                .entries
                .binary_search_by(|x| x.file_path.as_str().cmp(file_path))
                .ok();
        }
        None
    }
/// Finds the file entry identified by path.
/// Returns the entry index or None.
/// Expects path to be a caseless path.
/// Expects the entries to be sorted.
Finds the file entry identified by path.
Returns the entry index or None.
Expects path to be a caseless path.
Expects the entries to be sorted.
Finds the file entry identified by path . Returns the entry index or None . Expects path to be a caseless path . Expects the entries to be sorted .
fn find(&self, path: &Nfc) -> Option<usize> {
        if path.starts_with(&self.base_path.as_str()) {
            let file_path = path.split_at(self.base_path.len()).1;
            return self
                .entries
                .binary_search_by(|x| x.file_path.as_str().cmp(file_path))
                .ok();
        }
        None
    }
fn find ( & self , path : & Nfc ) -> Option < usize > { if path . starts_with ( & self . base_path . as_str ( ) ) { let file_path = path . split_at ( self . base_path . len ( ) ) . 1 ; return self . entries . binary_search_by ( | x | x . file_path . as_str ( ) . cmp ( file_path ) ) . ok ( ) ; } None }
Finds the file entry identified by path.
Finds the file entry identified by path .
&self
path
&Nfc
&self
path
&Nfc