pub struct PlanBuilder { /* private fields */ }Expand description
Accumulates files and their edits into one envelope.
Implementations§
Source§impl PlanBuilder
impl PlanBuilder
Sourcepub fn file(self, path: &str, sha256: &str) -> Self
pub fn file(self, path: &str, sha256: &str) -> Self
Opens or reuses a file entry. Edits added after this land on it.
Reusing keeps one entry per path: two entries for the same file would each carry the same “before” hash and the second would be applied to bytes the first already changed.
Auto Trait Implementations§
impl Freeze for PlanBuilder
impl RefUnwindSafe for PlanBuilder
impl Send for PlanBuilder
impl Sync for PlanBuilder
impl Unpin for PlanBuilder
impl UnsafeUnpin for PlanBuilder
impl UnwindSafe for PlanBuilder
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