pub struct Patch<R> {
pub header: PatchHeader,
pub container_old: Container,
pub container_new: Container,
pub sync_op_iter: SyncEntryIter<R>,
}Expand description
Represents a decoded wharf patch file
https://docs.itch.zone/wharf/master/file-formats/patches.html
Contains the header, the old and new containers describing file system state before and after the patch, and an iterator over the patch operations. The iterator reads from the underlying stream on the fly as items are requested.
Fields§
§header: PatchHeader§container_old: Container§container_new: Container§sync_op_iter: SyncEntryIter<R>Trait Implementations§
impl<R> StructuralPartialEq for Patch<R>
Auto Trait Implementations§
impl<R> Freeze for Patch<R>where
R: Freeze,
impl<R> RefUnwindSafe for Patch<R>where
R: RefUnwindSafe,
impl<R> Send for Patch<R>where
R: Send,
impl<R> Sync for Patch<R>where
R: Sync,
impl<R> Unpin for Patch<R>where
R: Unpin,
impl<R> UnwindSafe for Patch<R>where
R: UnwindSafe,
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