pub struct SelectedEntry { /* private fields */ }Expand description
An entry name with its decompressed data, or the reason it cannot be read.
Implementations§
Source§impl SelectedEntry
impl SelectedEntry
Sourcepub fn data(&self) -> Result<&[u8], &Error>
pub fn data(&self) -> Result<&[u8], &Error>
The decompressed data of the entry.
§Errors
Returns the error that kept the entry from being decompressed.
Sourcepub fn into_data(self) -> Result<Vec<u8>, Error>
pub fn into_data(self) -> Result<Vec<u8>, Error>
The decompressed data of the entry, moved out without a copy.
§Errors
Returns the error that kept the entry from being decompressed.
Sourcepub fn is_over_limit(&self) -> bool
pub fn is_over_limit(&self) -> bool
Whether PBO::read_entries_tolerant left the entry unread because the byte limit was reached
(its data is then an error).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SelectedEntry
impl !UnwindSafe for SelectedEntry
impl Freeze for SelectedEntry
impl Send for SelectedEntry
impl Sync for SelectedEntry
impl Unpin for SelectedEntry
impl UnsafeUnpin for SelectedEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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