pub struct ScopedWorktree {
pub name: String,
pub branch: Option<String>,
pub path: PathBuf,
pub repo_root: PathBuf,
pub is_main: bool,
}Fields§
§name: StringBasename of the worktree directory.
branch: Option<String>Short branch name. None for detached HEAD.
path: PathBufAbsolute path to the worktree directory.
repo_root: PathBufMain repo root this worktree belongs to. Canonicalized (symlinks resolved) for stable equality comparisons.
is_main: boolTrue if this worktree is itself the main repo of its family.
Trait Implementations§
Source§impl Clone for ScopedWorktree
impl Clone for ScopedWorktree
Source§fn clone(&self) -> ScopedWorktree
fn clone(&self) -> ScopedWorktree
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScopedWorktree
impl RefUnwindSafe for ScopedWorktree
impl Send for ScopedWorktree
impl Sync for ScopedWorktree
impl Unpin for ScopedWorktree
impl UnsafeUnpin for ScopedWorktree
impl UnwindSafe for ScopedWorktree
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more