pub const fn str_eq(lhs: &str, rhs: &str) -> bool {
    let lhs_bytes = lhs.as_bytes();
    let rhs_bytes = rhs.as_bytes();
    let mut i = 0;
    let bytes = if lhs_bytes.len() == rhs_bytes.len() {
        lhs_bytes.len()
    } else {
        return false;
    };

    while i < bytes {
        if lhs_bytes[i] != rhs_bytes[i] {
            return false;
        }
        i += 1;
    }
    return true;
}
// const-evaluable equality for string slices
const-evaluable equality for string slices
const - evaluable equality for string slices
pub const fn str_eq(lhs: &str, rhs: &str) -> bool {
    let lhs_bytes = lhs.as_bytes();
    let rhs_bytes = rhs.as_bytes();
    let mut i = 0;
    let bytes = if lhs_bytes.len() == rhs_bytes.len() {
        lhs_bytes.len()
    } else {
        return false;
    };
    while i < bytes {
        if lhs_bytes[i] != rhs_bytes[i] {
            return false;
        }
        i += 1;
    }
    return true;
}
pub const fn str_eq ( lhs : & str , rhs : & str ) -> bool { let lhs_bytes = lhs . as_bytes ( ) ; let rhs_bytes = rhs . as_bytes ( ) ; let mut i = 0 ; let bytes = if lhs_bytes . len ( ) == rhs_bytes . len ( ) { lhs_bytes . len ( ) } else { return false ; } ; while i < bytes { if lhs_bytes [ i ] != rhs_bytes [ i ] { return false ; } i += 1 ; } return true ; }
const-evaluable equality for string slices
const - evaluable equality for string slices
lhs
&str
rhs
&str