struct SourceDelta {
added: usize,
removed: usize,
modified: usize,
changed_bytes: u64,
folder_changed: bool,
paths: Vec<String>,
}Expand description
Changed source paths retained by an ordered comparison; unchanged rows are discarded.
Fields§
§added: usizeAdded live paths.
removed: usizeRemoved or excluded paths.
modified: usizePaths whose source-derived fields changed.
changed_bytes: u64Current bytes belonging to added or modified files.
folder_changed: boolA changed folder requires complete discovery, even after it was deleted.
paths: Vec<String>Exact changed keys, kept sorted for diagnostics and refresh admission.
Implementations§
Source§impl SourceDelta
impl SourceDelta
Sourcefn compare_next<'a>(
&mut self,
current: &mut Peekable<impl Iterator<Item = &'a Node>>,
indexed: &Node,
)
fn compare_next<'a>( &mut self, current: &mut Peekable<impl Iterator<Item = &'a Node>>, indexed: &Node, )
Merge one ordered stored row with the current-source cursor.
Sourcefn record(&mut self, current: Option<&Node>, indexed: Option<&Node>)
fn record(&mut self, current: Option<&Node>, indexed: Option<&Node>)
Accumulate only a real addition, deletion, or source-field modification.
Sourcefn finish(self, root: &Path) -> Option<IndexFreshnessDelta>
fn finish(self, root: &Path) -> Option<IndexFreshnessDelta>
Apply the existing normal-read limits to the complete compared change set.
Trait Implementations§
Source§impl Default for SourceDelta
impl Default for SourceDelta
Source§fn default() -> SourceDelta
fn default() -> SourceDelta
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SourceDelta
impl RefUnwindSafe for SourceDelta
impl Send for SourceDelta
impl Sync for SourceDelta
impl Unpin for SourceDelta
impl UnsafeUnpin for SourceDelta
impl UnwindSafe for SourceDelta
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
§impl<'a, T> FromIn<'a, T> for T
impl<'a, T> FromIn<'a, T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more