Struct gix_status::index_as_worktree::Recorder
source · 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>
§type ContentChange = T
type ContentChange = T
Data generated by comparing an entry with a file.
§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> RefUnwindSafe for Recorder<'index, T, U>where
T: RefUnwindSafe,
U: 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
T: UnwindSafe,
U: 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