pub struct PackReader { /* private fields */ }Expand description
Reader for unpacking pack files
⚠️ EXPERIMENTAL: API may change without notice.
Implementations§
Source§impl PackReader
impl PackReader
Sourcepub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn open(path: impl AsRef<Path>) -> Result<Self>
Open a pack file
⚠️ EXPERIMENTAL: File format may change.
Sourcepub fn unpack_to(&self, history_dir: impl AsRef<Path>) -> Result<()>
pub fn unpack_to(&self, history_dir: impl AsRef<Path>) -> Result<()>
Unpack to history directory
⚠️ EXPERIMENTAL: This will overwrite existing history.
Sourcepub fn merge_into(&self, history_dir: impl AsRef<Path>) -> Result<MergeStats>
pub fn merge_into(&self, history_dir: impl AsRef<Path>) -> Result<MergeStats>
Merge into existing history (append non-duplicate operations)
⚠️ EXPERIMENTAL: Merge logic may change.
Auto Trait Implementations§
impl Freeze for PackReader
impl RefUnwindSafe for PackReader
impl Send for PackReader
impl Sync for PackReader
impl Unpin for PackReader
impl UnwindSafe for PackReader
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