[−][src]Struct phar::read::index::OffsetOnly
This is supported on crate feature
reader
only.Stores files by position.
Uses only O(nm)
memory,
where n
is the number of files,
and m
is either 1
or the length of filenames
depending on whether files are cached.
Trait Implementations
impl Debug for OffsetOnly
[src]
impl Default for OffsetOnly
[src]
pub fn default() -> OffsetOnly
[src]
impl FileIndex for OffsetOnly
[src]
pub fn feed_entry(&mut self, _: u64, entry: Entry) -> Result<()>
[src]
pub fn end_of_header(&mut self, offset: u64)
[src]
pub fn scan_files() -> bool
[src]
pub fn requires_name() -> bool
[src]
pub fn requires_metadata() -> bool
[src]
impl Iterable for OffsetOnly
[src]
pub fn for_each_file_fold<'t, R, F, G, T, U>(
&self,
read: R,
f: F,
fold: G
) -> Result<Option<T>> where
R: Read + Seek + 't,
F: FnMut(&[u8], &mut dyn Read) -> Result<U>,
G: FnMut(Option<T>, U) -> T,
[src]
&self,
read: R,
f: F,
fold: G
) -> Result<Option<T>> where
R: Read + Seek + 't,
F: FnMut(&[u8], &mut dyn Read) -> Result<U>,
G: FnMut(Option<T>, U) -> T,
pub fn for_each_file<'t, R, F>(&self, read: R, f: F) -> Result<()> where
R: Read + Seek + 't,
F: FnMut(&[u8], &mut dyn Read) -> Result<()>,
[src]
R: Read + Seek + 't,
F: FnMut(&[u8], &mut dyn Read) -> Result<()>,
Auto Trait Implementations
impl RefUnwindSafe for OffsetOnly
impl Send for OffsetOnly
impl Sync for OffsetOnly
impl Unpin for OffsetOnly
impl UnwindSafe for OffsetOnly
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,