pub struct FileIndex { /* private fields */ }Implementations§
Source§impl FileIndex
impl FileIndex
pub fn open<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn upsert(&mut self, entry: &FileEntry) -> Result<()>
pub fn bulk_upsert(&mut self, entries: &[FileEntry]) -> Result<()>
pub fn bulk_remove(&mut self, paths: &[String]) -> Result<()>
pub fn apply_changes( &mut self, paths_to_remove: &[String], entries_to_upsert: &[FileEntry], ) -> Result<()>
pub fn get(&self, path: &str) -> Result<Option<FileEntry>>
pub fn remove(&mut self, path: &str) -> Result<()>
pub fn all_paths(&self) -> Result<Vec<String>>
pub fn all_entries(&self) -> Result<Vec<FileEntry>>
pub fn entries(&self) -> &HashMap<String, FileEntry>
pub fn entries_by_path(&self) -> Result<HashMap<String, FileEntry>>
pub fn clear(&mut self) -> Result<()>
Auto Trait Implementations§
impl Freeze for FileIndex
impl RefUnwindSafe for FileIndex
impl Send for FileIndex
impl Sync for FileIndex
impl Unpin for FileIndex
impl UnsafeUnpin for FileIndex
impl UnwindSafe for FileIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more