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: Debug, U: Debug> Debug for Recorder<'index, T, U>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'index, T: Default, U: Default> Default for Recorder<'index, T, U>

source§

fn default() -> Recorder<'index, T, U>

Returns the “default value” for a type. Read more
source§

impl<'index, T: Send, U: Send> VisitEntry<'index> for Recorder<'index, T, U>

§

type ContentChange = T

Data generated by comparing an entry with a file.
§

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>, )

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>

§

impl<'index, T, U> Send for Recorder<'index, T, U>
where U: Send, T: Send,

§

impl<'index, T, U> Sync for Recorder<'index, T, U>
where U: Sync, T: Sync,

§

impl<'index, T, U> Unpin for Recorder<'index, T, U>
where U: Unpin, T: Unpin,

§

impl<'index, T, U> UnwindSafe for Recorder<'index, T, U>
where U: UnwindSafe, T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.