pub struct Archive<'bytes> { /* private fields */ }
Expand description
Represents the FO4 revision of the ba2 format.
Implementations§
source§impl<'bytes> Archive<'bytes>
impl<'bytes> Archive<'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 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> 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