Struct gix_worktree::status::Recorder
source · pub struct Recorder<'index, T = ()> {
pub records: Vec<(&'index BStr, Option<Change<T>>, bool)>,
}
Expand description
Convenience implementation of VisitEntry
that collects all non-trivial changes into a Vec
.
Fields§
§records: Vec<(&'index BStr, Option<Change<T>>, bool)>
collected changes, index entries without conflicts or changes are excluded.
Trait Implementations§
source§impl<'index, T: Send> VisitEntry<'index> for Recorder<'index, T>
impl<'index, T: Send> VisitEntry<'index> for Recorder<'index, T>
§type ContentChange = T
type ContentChange = T
Data generated by comparing an entry with a file.
source§fn visit_entry(
&mut self,
_entry: &'index Entry,
rela_path: &'index BStr,
status: Option<Change<Self::ContentChange>>,
conflict: bool
)
fn visit_entry( &mut self, _entry: &'index Entry, rela_path: &'index BStr, status: Option<Change<Self::ContentChange>>, conflict: bool )
Observe the
change
of entry
at the repository-relative rela_path
, indicating whether
or not it has a conflict
.
If change
is None
, there is no change.Auto Trait Implementations§
impl<'index, T> RefUnwindSafe for Recorder<'index, T>where T: RefUnwindSafe,
impl<'index, T> Send for Recorder<'index, T>where T: Send,
impl<'index, T> Sync for Recorder<'index, T>where T: Sync,
impl<'index, T> Unpin for Recorder<'index, T>where T: Unpin,
impl<'index, T> UnwindSafe for Recorder<'index, T>where T: UnwindSafe,
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