Function shadow_rs::utility::u8_to_i8_slice

source ยท
pub fn u8_to_i8_slice(s: &[u8]) -> &[i8]
Expand description

Convert a &[u8] to &[i8]. Useful when interacting with C strings. Panics if i8::try_from(c) fails for any c in the slice.