pub struct DiffMatching { /* private fields */ }Expand description
Tree matching algorithm optimized for diff generation.
This matching algorithm only uses exact content matches and prefers sequential matches to enable efficient run-length encoding in the generated diff output.
Implementations§
Source§impl DiffMatching
impl DiffMatching
Trait Implementations§
Source§impl Default for DiffMatching
impl Default for DiffMatching
Source§fn default() -> DiffMatching
fn default() -> DiffMatching
Returns the “default value” for a type. Read more
Source§impl Matching for DiffMatching
impl Matching for DiffMatching
Source§fn build_matching(&mut self, base: &NodeRef, branch: &NodeRef)
fn build_matching(&mut self, base: &NodeRef, branch: &NodeRef)
Builds a matching between a base tree and a branch tree. Read more
Source§fn get_area_stop_nodes(&self, stop_nodes: &mut Vec<NodeRef>, node: &NodeRef)
fn get_area_stop_nodes(&self, stop_nodes: &mut Vec<NodeRef>, node: &NodeRef)
Gets the children of leaf nodes in a matching subtree. Read more
Source§fn branch_root(&self) -> Option<&NodeRef>
fn branch_root(&self) -> Option<&NodeRef>
Returns a reference to the branch tree root.
Auto Trait Implementations§
impl Freeze for DiffMatching
impl !RefUnwindSafe for DiffMatching
impl !Send for DiffMatching
impl !Sync for DiffMatching
impl Unpin for DiffMatching
impl !UnwindSafe for DiffMatching
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