pub struct EntrySource(/* private fields */);Expand description
A reopenable byte source for an archive member.
Implementations§
Source§impl EntrySource
impl EntrySource
pub fn from_bytes(data: impl Into<Arc<[u8]>>) -> Self
pub fn from_path(path: impl Into<PathBuf>) -> Self
pub fn from_opener<F>(len: u64, open: F) -> Self
pub fn len(&self) -> Result<u64>
pub fn is_empty(&self) -> Result<bool>
pub fn open(&self) -> Result<Box<dyn EntryReader>>
Trait Implementations§
Source§impl Clone for EntrySource
impl Clone for EntrySource
Source§fn clone(&self) -> EntrySource
fn clone(&self) -> EntrySource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for EntrySource
impl !UnwindSafe for EntrySource
impl Freeze for EntrySource
impl Send for EntrySource
impl Sync for EntrySource
impl Unpin for EntrySource
impl UnsafeUnpin for EntrySource
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