plain

Function as_bytes

Source
pub unsafe fn as_bytes<S>(s: &S) -> &[u8]
where S: ?Sized,
Expand description

Interpret data as bytes. Not safe for data with padding.