Function shadow_rs::utility::i8_to_u8_slice

source ·
pub fn i8_to_u8_slice(s: &[i8]) -> &[u8] 
Expand description

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