MCPcopy Create free account
hub / github.com/benhall-7/diff-struct / find_match

Function find_match

src/utils.rs:6–37  ·  view source on GitHub ↗

Finds the closest-to-starting element present in both slices. Returns whether an equal element was found in each slice, the index of the element in a, the index in b. If no match was found between a and b, returns the indeces of the end of each slice, respectively.

(a: &[T], b: &[T])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

diffMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected