pub struct WorktreeRoots {
pub old_root: Option<PathBuf>,
pub new_root: Option<PathBuf>,
}Available on crate feature
blob only.Expand description
A way to access roots for different kinds of resources that are possibly located and accessible in a worktree.
Fields§
§old_root: Option<PathBuf>A place where the source of a rewrite, rename or copy, or generally the previous version of resources, are located.
new_root: Option<PathBuf>A place where the destination of a rewrite, rename or copy, or generally the new version of resources, are located.
Implementations§
Trait Implementations§
Source§impl Clone for WorktreeRoots
impl Clone for WorktreeRoots
Source§impl Debug for WorktreeRoots
impl Debug for WorktreeRoots
Auto Trait Implementations§
impl Freeze for WorktreeRoots
impl RefUnwindSafe for WorktreeRoots
impl Send for WorktreeRoots
impl Sync for WorktreeRoots
impl Unpin for WorktreeRoots
impl UnsafeUnpin for WorktreeRoots
impl UnwindSafe for WorktreeRoots
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