fn assume_utf8(bytes: &[u8]) -> &str {
    if cfg!(debug) {
        str::from_utf8(bytes).unwrap_or_else(|e|
            panic!("{}; lossy conversion: {}", e, String::from_utf8_lossy(bytes))
        )
    } else {
        unsafe { str::from_utf8_unchecked(bytes) }
    }
}
/// In debug mode, asserts that `bytes` is valid UTF-8; in release mode, converts it unchecked
In debug mode, asserts that `bytes` is valid UTF-8; in release mode, converts it unchecked
In debug mode asserts that ` bytes ` is valid UTF - 8 ; in release mode converts it unchecked
fn assume_utf8(bytes: &[u8]) -> &str {
    if cfg!(debug) {
        str::from_utf8(bytes).unwrap_or_else(|e|
            panic!("{}; lossy conversion: {}", e, String::from_utf8_lossy(bytes))
        )
    } else {
        unsafe { str::from_utf8_unchecked(bytes) }
    }
}
fn assume_utf8 ( bytes : & [ u8 ] ) -> & str { if cfg ! ( debug ) { str :: from_utf8 ( bytes ) . unwrap_or_else ( | e | panic ! ( " " e String from_utf8_lossy ( bytes ) ) ) } else { unsafe { str :: from_utf8_unchecked ( bytes ) } } }
In debug mode, asserts that `bytes` is valid UTF-8; in release mode, converts it unchecked
In debug mode asserts that ` bytes ` is valid UTF - 8 ; in release mode converts it unchecked
bytes
&[u8]