pub struct WorktreeChange {
pub path: String,
pub status: ChangeStatus,
pub old_path: Option<String>,
}Expand description
One changed path.
Fields§
§path: StringRepo-relative, / separators, UTF-8.
status: ChangeStatusHow it changed.
old_path: Option<String>Rename source path, when status is a rename.
Trait Implementations§
Source§impl Clone for WorktreeChange
impl Clone for WorktreeChange
Source§fn clone(&self) -> WorktreeChange
fn clone(&self) -> WorktreeChange
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 WorktreeChange
impl Debug for WorktreeChange
impl Eq for WorktreeChange
Source§impl PartialEq for WorktreeChange
impl PartialEq for WorktreeChange
Source§fn eq(&self, other: &WorktreeChange) -> bool
fn eq(&self, other: &WorktreeChange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WorktreeChange
Auto Trait Implementations§
impl Freeze for WorktreeChange
impl RefUnwindSafe for WorktreeChange
impl Send for WorktreeChange
impl Sync for WorktreeChange
impl Unpin for WorktreeChange
impl UnsafeUnpin for WorktreeChange
impl UnwindSafe for WorktreeChange
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