pub struct Recorder<'index, T = (), U = ()> {
pub records: Vec<Record<'index, T, U>>,
}
Expand description
Convenience implementation of VisitEntry
that collects all non-trivial changes into a Vec
.
Fields§
§records: Vec<Record<'index, T, U>>
collected changes, index entries without conflicts or changes are excluded.
Trait Implementations§
Source§impl<'index, T: Send, U: Send> VisitEntry<'index> for Recorder<'index, T, U>
impl<'index, T: Send, U: Send> VisitEntry<'index> for Recorder<'index, T, U>
Source§type ContentChange = T
type ContentChange = T
Data generated by comparing an entry with a file.
Source§type SubmoduleStatus = U
type SubmoduleStatus = U
Data obtained when checking the submodule status.
Source§fn visit_entry(
&mut self,
_entries: &'index [Entry],
entry: &'index Entry,
entry_index: usize,
relative_path: &'index BStr,
status: EntryStatus<Self::ContentChange, Self::SubmoduleStatus>,
)
fn visit_entry( &mut self, _entries: &'index [Entry], entry: &'index Entry, entry_index: usize, relative_path: &'index BStr, status: EntryStatus<Self::ContentChange, Self::SubmoduleStatus>, )
Observe the
status
of entry
at the repository-relative rela_path
at entry_index
(for accessing entry
and surrounding in the complete list of entries
).Auto Trait Implementations§
impl<'index, T, U> Freeze for Recorder<'index, T, U>
impl<'index, T, U> RefUnwindSafe for Recorder<'index, T, U>where
U: RefUnwindSafe,
T: RefUnwindSafe,
impl<'index, T, U> Send for Recorder<'index, T, U>
impl<'index, T, U> Sync for Recorder<'index, T, U>
impl<'index, T, U> Unpin for Recorder<'index, T, U>
impl<'index, T, U> UnwindSafe for Recorder<'index, T, U>where
U: UnwindSafe,
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