pub struct Outcome {
pub index_worktree: Outcome,
pub tree_index: Option<Outcome>,
pub worktree_index: IndexPersistedOrInMemory,
/* private fields */
}Available on crate feature
status only.Expand description
The data the thread sends over to the receiving iterator.
Fields§
§index_worktree: OutcomeThe outcome of the index-to-worktree comparison operation.
tree_index: Option<Outcome>The outcome of the diff between HEAD^{tree} and the index, or None if this outcome
was produced with the into_index_worktree_iter().
worktree_index: IndexPersistedOrInMemoryThe worktree index that was used for the operation.
Implementations§
Source§impl Outcome
impl Outcome
Sourcepub fn has_changes(&self) -> bool
pub fn has_changes(&self) -> bool
Returns true if the index has received currently unapplied changes that should be written back.
If they are not written back, subsequent status operations will take longer to complete, whereas the
additional work can be prevented by writing the changes back to the index.
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnwindSafe for Outcome
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