pub enum ReadEntry<T = Vec<u8>> {
Solid(SolidEntry<T>),
Normal(NormalEntry<T>),
}Expand description
A NormalEntry or SolidEntry read from an archive.
Variants§
Solid(SolidEntry<T>)
A solid mode entry that contains multiple files compressed together. This type of entry provides better compression ratios but requires sequential access to the contained files.
Normal(NormalEntry<T>)
A normal entry that represents a single file in the archive. This type of entry allows random access to the file data.
Trait Implementations§
Source§impl<T> From<NormalEntry<T>> for ReadEntry<T>
impl<T> From<NormalEntry<T>> for ReadEntry<T>
Source§fn from(value: NormalEntry<T>) -> ReadEntry<T>
fn from(value: NormalEntry<T>) -> ReadEntry<T>
Converts to this type from the input type.
Source§impl<T> From<SolidEntry<T>> for ReadEntry<T>
impl<T> From<SolidEntry<T>> for ReadEntry<T>
Source§fn from(value: SolidEntry<T>) -> ReadEntry<T>
fn from(value: SolidEntry<T>) -> ReadEntry<T>
Converts to this type from the input type.
Source§impl<T> Ord for ReadEntry<T>where
T: Ord,
impl<T> Ord for ReadEntry<T>where
T: Ord,
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<T> PartialOrd for ReadEntry<T>where
T: PartialOrd,
impl<T> PartialOrd for ReadEntry<T>where
T: PartialOrd,
impl<T> Entry for ReadEntry<T>where
ReadEntry<T>: SealedEntryExt,
impl<T> Eq for ReadEntry<T>where
T: Eq,
impl<T> StructuralPartialEq for ReadEntry<T>
Auto Trait Implementations§
impl<T> Freeze for ReadEntry<T>
impl<T> RefUnwindSafe for ReadEntry<T>where
T: RefUnwindSafe,
impl<T> Send for ReadEntry<T>where
T: Send,
impl<T> Sync for ReadEntry<T>where
T: Sync,
impl<T> Unpin for ReadEntry<T>where
T: Unpin,
impl<T> UnwindSafe for ReadEntry<T>where
T: UnwindSafe,
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