Skip to main content

structural_distance

Function structural_distance 

Source
pub fn structural_distance(e1: &Expr, e2: &Expr) -> usize
Expand description

Compute the “edit distance” between two expressions as a rough measure of how different they are structurally.

Returns 0 for identical expressions.