fn common_prefix_len<T: PartialEq>(
    a: &[T],
    a_range: Range<usize>,
    b: &[T],
    b_range: Range<usize>,
) -> usize {
    let mut l = 0;

    while a_range.start + l < a_range.end
        && b_range.start + l < b_range.end
        && a[a_range.start + l] == b[b_range.start + l]
    {
        l += 1;
    }
    l
}
/// Find the length of the common prefix between the ranges specified for `a` and `b`.
Find the length of the common prefix between the ranges specified for `a` and `b`.
Find the length of the common prefix between the ranges specified for ` a ` and ` b ` .
fn common_prefix_len<T: PartialEq>(
    a: &[T],
    a_range: Range<usize>,
    b: &[T],
    b_range: Range<usize>,
) -> usize {
    let mut l = 0;
    while a_range.start + l < a_range.end
        && b_range.start + l < b_range.end
        && a[a_range.start + l] == b[b_range.start + l]
    {
        l += 1;
    }
    l
}
fn common_prefix_len < T : PartialEq > ( a : & [ T ] , a_range : Range < usize > , b : & [ T ] , b_range : Range < usize > , ) -> usize { let mut l = 0 ; while a_range . start + l < a_range . end && b_range . start + l < b_range . end && a [ a_range . start + l ] == b [ b_range . start + l ] { l += 1 ; } l }
Find the length of the common prefix between the ranges specified for `a` and `b`.
Find the length of the common prefix between the ranges specified for ` a ` and ` b ` .
a
&[T]
a_range
Range<usize>
b
&[T]
b_range
Range<usize>
a
&[T]
a_range
Range<usize>
b
&[T]
b_range
Range<usize>