pub struct ArchiveFileGroup(/* private fields */);
Expand description
Holds all of the archive files that belong to a single archive.
Implementations§
Source§impl ArchiveFileGroup
impl ArchiveFileGroup
Sourcepub fn from_buffer(buffer: &[u8], entry_count: usize) -> Self
pub fn from_buffer(buffer: &[u8], entry_count: usize) -> Self
Format a raw buffer into a list of ArchiveFileData
’s.
§Panics
Whenever the buffer has a wrong format no files can be constructed.
pub fn iter(&self) -> Iter<'_, ArchiveFileData>
pub fn iter_mut(&mut self) -> IterMut<'_, ArchiveFileData>
Trait Implementations§
Source§impl Clone for ArchiveFileGroup
impl Clone for ArchiveFileGroup
Source§fn clone(&self) -> ArchiveFileGroup
fn clone(&self) -> ArchiveFileGroup
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ArchiveFileGroup
impl Debug for ArchiveFileGroup
Source§impl Default for ArchiveFileGroup
impl Default for ArchiveFileGroup
Source§fn default() -> ArchiveFileGroup
fn default() -> ArchiveFileGroup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ArchiveFileGroup
impl<'de> Deserialize<'de> for ArchiveFileGroup
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ArchiveFileGroup
impl Hash for ArchiveFileGroup
Source§impl<'a> IntoIterator for &'a ArchiveFileGroup
impl<'a> IntoIterator for &'a ArchiveFileGroup
Source§impl IntoIterator for ArchiveFileGroup
impl IntoIterator for ArchiveFileGroup
Source§impl Ord for ArchiveFileGroup
impl Ord for ArchiveFileGroup
Source§fn cmp(&self, other: &ArchiveFileGroup) -> Ordering
fn cmp(&self, other: &ArchiveFileGroup) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ArchiveFileGroup
impl PartialEq for ArchiveFileGroup
Source§impl PartialOrd for ArchiveFileGroup
impl PartialOrd for ArchiveFileGroup
Source§impl Serialize for ArchiveFileGroup
impl Serialize for ArchiveFileGroup
impl Eq for ArchiveFileGroup
impl StructuralPartialEq for ArchiveFileGroup
Auto Trait Implementations§
impl Freeze for ArchiveFileGroup
impl RefUnwindSafe for ArchiveFileGroup
impl Send for ArchiveFileGroup
impl Sync for ArchiveFileGroup
impl Unpin for ArchiveFileGroup
impl UnwindSafe for ArchiveFileGroup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more