Struct gix_diff::blob::pipeline::WorktreeRoots
source · 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§
source§impl WorktreeRoots
impl WorktreeRoots
sourcepub fn by_kind(&self, kind: ResourceKind) -> Option<&Path>
pub fn by_kind(&self, kind: ResourceKind) -> Option<&Path>
Return the root path for the given kind
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 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