pub struct WorktreeInfo {
pub path: PathBuf,
pub branch: Option<String>,
pub head: String,
}Expand description
One entry from git worktree list --porcelain.
Fields§
§path: PathBufAbsolute path to the worktree’s working directory.
branch: Option<String>Checked-out branch (short name), or None for a detached HEAD.
head: StringHEAD commit SHA.
Trait Implementations§
Source§impl Clone for WorktreeInfo
impl Clone for WorktreeInfo
Source§fn clone(&self) -> WorktreeInfo
fn clone(&self) -> WorktreeInfo
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 moreSource§impl Debug for WorktreeInfo
impl Debug for WorktreeInfo
impl Eq for WorktreeInfo
Source§impl PartialEq for WorktreeInfo
impl PartialEq for WorktreeInfo
impl StructuralPartialEq for WorktreeInfo
Auto Trait Implementations§
impl Freeze for WorktreeInfo
impl RefUnwindSafe for WorktreeInfo
impl Send for WorktreeInfo
impl Sync for WorktreeInfo
impl Unpin for WorktreeInfo
impl UnsafeUnpin for WorktreeInfo
impl UnwindSafe for WorktreeInfo
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