pub struct Package<S: CoordSpec> { /* private fields */ }Expand description
A handle to one file in a CoordView: authoritative coords (read from the
columns) + its location. Bytes are lazy — Package::bytes.
Implementations§
Source§impl<S: CoordSpec> Package<S>
impl<S: CoordSpec> Package<S>
Sourcepub fn relative_path(&self) -> &str
pub fn relative_path(&self) -> &str
This package’s row key in the archive — its relative_path column. What
lets a caller holding a handle ask the lookup sub-index, or fold a
path-bound per-file digest, without listing the whole archive.
Sourcepub fn bytes(&self) -> Result<Vec<u8>>
pub fn bytes(&self) -> Result<Vec<u8>>
LAZY: pread + decompress the file’s bytes. The only I/O of the read API.
pub fn into_bytes(self) -> Result<Vec<u8>>
Source§impl Package<MavenSpec>
impl Package<MavenSpec>
Source§impl Package<PythonSpec>
impl Package<PythonSpec>
Auto Trait Implementations§
impl<S> Forget for Package<S>
impl<S> Freeze for Package<S>
impl<S> Move for Package<S>
impl<S> RefUnwindSafe for Package<S>
impl<S> Send for Package<S>
impl<S> Sync for Package<S>
impl<S> Unpin for Package<S>
impl<S> UnsafeUnpin for Package<S>
impl<S> UnwindSafe for Package<S>
Blanket Implementations§
impl<T> Allocation for T
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