pub struct Directory<'bytes> { /* private fields */ }
Expand description
Represents a directory within the TES4 virtual filesystem.
Implementations§
source§impl<'bytes> Directory<'bytes>
impl<'bytes> Directory<'bytes>
pub fn clear(&mut self)
pub fn get<K>(&self, key: &K) -> Option<&File<'bytes>>
pub fn get_key_value<K>(&self, key: &K) -> Option<(&Key<'bytes>, &File<'bytes>)>
pub fn get_mut<K>(&mut self, key: &K) -> Option<&mut File<'bytes>>
pub fn insert<K>(&mut self, key: K, value: File<'bytes>) -> Option<File<'bytes>>
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&Key<'bytes>, &File<'bytes>)>
pub fn iter_mut( &mut self ) -> impl Iterator<Item = (&Key<'bytes>, &mut File<'bytes>)>
pub fn keys(&self) -> impl Iterator<Item = &Key<'bytes>>
pub fn len(&self) -> usize
pub fn new() -> Self
pub fn remove<K>(&mut self, key: &K) -> Option<File<'bytes>>
pub fn remove_entry<K>( &mut self, key: &K ) -> Option<(Key<'bytes>, File<'bytes>)>
pub fn values(&self) -> impl Iterator<Item = &File<'bytes>>
pub fn values_mut(&mut self) -> impl Iterator<Item = &mut File<'bytes>>
Trait Implementations§
source§impl<'bytes, 'this> IntoIterator for &'this Directory<'bytes>
impl<'bytes, 'this> IntoIterator for &'this Directory<'bytes>
source§impl<'bytes, 'this> IntoIterator for &'this mut Directory<'bytes>
impl<'bytes, 'this> IntoIterator for &'this mut Directory<'bytes>
Auto Trait Implementations§
impl<'bytes> RefUnwindSafe for Directory<'bytes>
impl<'bytes> Send for Directory<'bytes>
impl<'bytes> Sync for Directory<'bytes>
impl<'bytes> Unpin for Directory<'bytes>
impl<'bytes> UnwindSafe for Directory<'bytes>
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