pub struct Recorder<'index, T = (), U = ()> {
pub records: Vec<Entry<'index, T, U>>,
}
Available on crate feature
worktree-rewrites
only.Expand description
Convenience implementation of VisitEntry
that collects all changes into a Vec
.
Fields§
§records: Vec<Entry<'index, T, U>>
The collected changes.
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,
entry: Entry<'index, Self::ContentChange, Self::SubmoduleStatus>,
)
fn visit_entry( &mut self, entry: Entry<'index, 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