pub struct TurnDiffTracker { /* private fields */ }Expand description
Authoritative Turn Diff Tracker. Enables Hematite to proactively capture workspace mutations and generate high-precision unified diffs for human-in-the-loop verification.
Implementations§
Source§impl TurnDiffTracker
impl TurnDiffTracker
pub fn new() -> Self
Sourcepub fn on_file_access(&mut self, path: &Path)
pub fn on_file_access(&mut self, path: &Path)
Capture a baseline snapshot of a file if it hasn’t been seen yet this turn.
pub fn reset(&mut self)
Sourcepub fn generate_diff(&self) -> Result<String, String>
pub fn generate_diff(&self) -> Result<String, String>
Generate an aggregated unified diff of all modifications tracked this turn.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TurnDiffTracker
impl RefUnwindSafe for TurnDiffTracker
impl Send for TurnDiffTracker
impl Sync for TurnDiffTracker
impl Unpin for TurnDiffTracker
impl UnsafeUnpin for TurnDiffTracker
impl UnwindSafe for TurnDiffTracker
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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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