fn eq<T: Eq>(a: &[T], b: &[T]) -> bool {
    let (a_len, b_len) = (a.len(), b.len());
    if a_len != b_len { return false; }

    let mut i = 0;
    while i < a_len {
        if a[i] != b[i] { return false; }
        i += 1;
    }
    true
}
/// Tests whether two slices are equal to one another. This is only true if both
/// slices are of the same length, and each of the corresponding elements return
/// true when queried via the `eq` function.
Tests whether two slices are equal to one another. This is only true if both
slices are of the same length, and each of the corresponding elements return
true when queried via the `eq` function.
Tests whether two slices are equal to one another . This is only true if both slices are of the same length and each of the corresponding elements return true when queried via the ` eq ` function .
fn eq<T: Eq>(a: &[T], b: &[T]) -> bool {
    let (a_len, b_len) = (a.len(), b.len());
    if a_len != b_len { return false; }
    let mut i = 0;
    while i < a_len {
        if a[i] != b[i] { return false; }
        i += 1;
    }
    true
}
fn eq < T : Eq > ( a : & [ T ] , b : & [ T ] ) -> bool { let ( a_len , b_len ) = ( a . len ( ) , b . len ( ) ) ; if a_len != b_len { return false ; } let mut i = 0 ; while i < a_len { if a [ i ] != b [ i ] { return false ; } i += 1 ; } true }
Tests whether two slices are equal to one another.
Tests whether two slices are equal to one another .
a
&[T]
b
&[T]