pub struct PartialUpdater { /* private fields */ }Expand description
Partial updater for incremental document updates.
Implementations§
Source§impl PartialUpdater
impl PartialUpdater
Sourcepub fn detector(&self) -> &ChangeDetector
pub fn detector(&self) -> &ChangeDetector
Get the change detector.
Sourcepub fn detector_mut(&mut self) -> &mut ChangeDetector
pub fn detector_mut(&mut self) -> &mut ChangeDetector
Get mutable change detector.
Sourcepub fn update(
&self,
old_tree: &DocumentTree,
new_raw_nodes: Vec<RawNode>,
) -> Result<(DocumentTree, UpdateResult)>
pub fn update( &self, old_tree: &DocumentTree, new_raw_nodes: Vec<RawNode>, ) -> Result<(DocumentTree, UpdateResult)>
Update a tree with new raw nodes.
This performs a partial update by:
- Detecting changes between old and new content
- Updating only the affected subtrees
- Regenerating summaries for changed nodes
Sourcepub fn needs_reindex(&self, doc_id: &str, content: &str) -> bool
pub fn needs_reindex(&self, doc_id: &str, content: &str) -> bool
Check if reindexing is needed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PartialUpdater
impl RefUnwindSafe for PartialUpdater
impl Send for PartialUpdater
impl Sync for PartialUpdater
impl Unpin for PartialUpdater
impl UnsafeUnpin for PartialUpdater
impl UnwindSafe for PartialUpdater
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<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