pub struct Index { /* private fields */ }Implementations§
Source§impl Index
impl Index
pub fn entries(&self) -> &HashMap<String, IndexEntry>
pub fn insert_entry<S: Into<String>>( &mut self, path: S, entry: IndexEntry, ) -> Option<IndexEntry>
pub fn get_entry(&self, path: &str) -> Option<&IndexEntry>
pub fn get_entry_mut(&mut self, path: &str) -> Option<&mut IndexEntry>
pub fn remove_entry(&mut self, path: &str) -> Option<IndexEntry>
pub fn contains_path(&self, path: &str) -> bool
Trait Implementations§
impl StructuralPartialEq for Index
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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