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§fn clone(&self) -> WorktreeRoots
fn clone(&self) -> WorktreeRoots
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WorktreeRoots
impl Debug for WorktreeRoots
Source§impl Default for WorktreeRoots
impl Default for WorktreeRoots
Source§fn default() -> WorktreeRoots
fn default() -> WorktreeRoots
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorktreeRoots
impl RefUnwindSafe for WorktreeRoots
impl Send for WorktreeRoots
impl Sync for WorktreeRoots
impl Unpin 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