Skip to main content

shared_prefix_len

Function shared_prefix_len 

Source
pub fn shared_prefix_len(a: &str, b: &str) -> usize
Expand description

Count of leading characters shared between two paths. Used by read_file and glob 404 recovery to rank candidate suggestions.