pub struct WorktreeRoots {
pub current_root: Option<PathBuf>,
pub other_root: Option<PathBuf>,
pub common_ancestor_root: Option<PathBuf>,
}
Expand description
A way to access roots for different kinds of resources that are possibly located and accessible in a worktree.
Fields§
§current_root: Option<PathBuf>
The worktree root where the current (or our) version of the resource is present.
other_root: Option<PathBuf>
The worktree root where the other (or their) version of the resource is present.
common_ancestor_root: Option<PathBuf>
The worktree root where containing the resource of the common ancestor of our and their version.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)