pub struct PboSelection { /* private fields */ }Expand description
The entries of a PBO that PBO::read_entries selected.
Implementations§
Source§impl PboSelection
impl PboSelection
Sourcepub fn entries(&self) -> &[SelectedEntry]
pub fn entries(&self) -> &[SelectedEntry]
The selected entries in file order with their decompressed data; an entry that cannot be decompressed is an error of its own.
Sourcepub fn into_entries(self) -> Vec<SelectedEntry>
pub fn into_entries(self) -> Vec<SelectedEntry>
The selected entries, moved out of the selection.
Sourcepub fn header_extension(&self, key: &str) -> Option<&str>
pub fn header_extension(&self, key: &str) -> Option<&str>
The value of a header extension (the prefix is the key prefix).
Sourcepub fn header_extensions(&self) -> impl Iterator<Item = (&str, &str)>
pub fn header_extensions(&self) -> impl Iterator<Item = (&str, &str)>
The header extensions (key=value) in file order.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PboSelection
impl !UnwindSafe for PboSelection
impl Freeze for PboSelection
impl Send for PboSelection
impl Sync for PboSelection
impl Unpin for PboSelection
impl UnsafeUnpin for PboSelection
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