pub struct ChangeTracker { /* private fields */ }Expand description
Tracks changes to a symbol table for incremental validation
Implementations§
Source§impl ChangeTracker
impl ChangeTracker
pub fn new() -> Self
Sourcepub fn begin_batch(&mut self) -> usize
pub fn begin_batch(&mut self) -> usize
Start a batch of changes that will be validated together
Sourcepub fn record_domain_addition(&mut self, domain: impl Into<String>)
pub fn record_domain_addition(&mut self, domain: impl Into<String>)
Record a domain addition
Sourcepub fn record_domain_modification(&mut self, domain: impl Into<String>)
pub fn record_domain_modification(&mut self, domain: impl Into<String>)
Record a domain modification
Sourcepub fn record_domain_removal(&mut self, domain: impl Into<String>)
pub fn record_domain_removal(&mut self, domain: impl Into<String>)
Record a domain removal
Sourcepub fn record_predicate_addition(&mut self, predicate: impl Into<String>)
pub fn record_predicate_addition(&mut self, predicate: impl Into<String>)
Record a predicate addition
Sourcepub fn record_predicate_modification(&mut self, predicate: impl Into<String>)
pub fn record_predicate_modification(&mut self, predicate: impl Into<String>)
Record a predicate modification
Sourcepub fn record_predicate_removal(&mut self, predicate: impl Into<String>)
pub fn record_predicate_removal(&mut self, predicate: impl Into<String>)
Record a predicate removal
Sourcepub fn record_variable_addition(&mut self, variable: impl Into<String>)
pub fn record_variable_addition(&mut self, variable: impl Into<String>)
Record a variable binding addition
Sourcepub fn record_variable_modification(&mut self, variable: impl Into<String>)
pub fn record_variable_modification(&mut self, variable: impl Into<String>)
Record a variable binding modification
Sourcepub fn record_variable_removal(&mut self, variable: impl Into<String>)
pub fn record_variable_removal(&mut self, variable: impl Into<String>)
Record a variable binding removal
Sourcepub fn record_hierarchy_addition(
&mut self,
subtype: impl Into<String>,
supertype: impl Into<String>,
)
pub fn record_hierarchy_addition( &mut self, subtype: impl Into<String>, supertype: impl Into<String>, )
Record a hierarchy relationship addition
Sourcepub fn record_hierarchy_removal(
&mut self,
subtype: impl Into<String>,
supertype: impl Into<String>,
)
pub fn record_hierarchy_removal( &mut self, subtype: impl Into<String>, supertype: impl Into<String>, )
Record a hierarchy relationship removal
Sourcepub fn domains_affected(&self) -> &HashSet<String>
pub fn domains_affected(&self) -> &HashSet<String>
Get domains affected by changes
Sourcepub fn predicates_affected(&self) -> &HashSet<String>
pub fn predicates_affected(&self) -> &HashSet<String>
Get predicates affected by changes
Sourcepub fn variables_affected(&self) -> &HashSet<String>
pub fn variables_affected(&self) -> &HashSet<String>
Get variables affected by changes
Sourcepub fn has_changes(&self) -> bool
pub fn has_changes(&self) -> bool
Check if any changes have been recorded
Sourcepub fn stats(&self) -> ChangeStats
pub fn stats(&self) -> ChangeStats
Get change statistics
Trait Implementations§
Source§impl Clone for ChangeTracker
impl Clone for ChangeTracker
Source§fn clone(&self) -> ChangeTracker
fn clone(&self) -> ChangeTracker
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChangeTracker
impl Debug for ChangeTracker
Source§impl Default for ChangeTracker
impl Default for ChangeTracker
Source§fn default() -> ChangeTracker
fn default() -> ChangeTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChangeTracker
impl RefUnwindSafe for ChangeTracker
impl Send for ChangeTracker
impl Sync for ChangeTracker
impl Unpin for ChangeTracker
impl UnwindSafe for ChangeTracker
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