pub struct Archive<'bytes> { /* private fields */ }
Expand description
Represents the TES4 revision of the bsa format.
Implementations§
Source§impl<'bytes> Archive<'bytes>
impl<'bytes> Archive<'bytes>
pub fn clear(&mut self)
pub fn get<K>(&self, key: &K) -> Option<&Directory<'bytes>>where
K: Borrow<DirectoryHash>,
pub fn get_key_value<K>(
&self,
key: &K,
) -> Option<(&Key<'bytes>, &Directory<'bytes>)>where
K: Borrow<DirectoryHash>,
pub fn get_mut<K>(&mut self, key: &K) -> Option<&mut Directory<'bytes>>where
K: Borrow<DirectoryHash>,
pub fn insert<K>( &mut self, key: K, value: Directory<'bytes>, ) -> Option<Directory<'bytes>>
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&Key<'bytes>, &Directory<'bytes>)>
pub fn iter_mut( &mut self, ) -> impl Iterator<Item = (&Key<'bytes>, &mut Directory<'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<Directory<'bytes>>where
K: Borrow<DirectoryHash>,
pub fn remove_entry<K>(
&mut self,
key: &K,
) -> Option<(Key<'bytes>, Directory<'bytes>)>where
K: Borrow<DirectoryHash>,
pub fn values(&self) -> impl Iterator<Item = &Directory<'bytes>>
pub fn values_mut(&mut self) -> impl Iterator<Item = &mut Directory<'bytes>>
Trait Implementations§
Source§impl<'bytes, 'this> IntoIterator for &'this Archive<'bytes>
impl<'bytes, 'this> IntoIterator for &'this Archive<'bytes>
Source§impl<'bytes, 'this> IntoIterator for &'this mut Archive<'bytes>
impl<'bytes, 'this> IntoIterator for &'this mut Archive<'bytes>
Source§impl<'bytes> IntoIterator for Archive<'bytes>
impl<'bytes> IntoIterator for Archive<'bytes>
Auto Trait Implementations§
impl<'bytes> Freeze for Archive<'bytes>
impl<'bytes> RefUnwindSafe for Archive<'bytes>
impl<'bytes> Send for Archive<'bytes>
impl<'bytes> Sync for Archive<'bytes>
impl<'bytes> Unpin for Archive<'bytes>
impl<'bytes> UnwindSafe for Archive<'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