Function konst::slice::bytes_trim
source · pub const fn bytes_trim(this: &[u8]) -> &[u8]
Expand description
Removes ascii whitespace from the start and end of this
.
§Example
use konst::slice;
const TRIMMED: &[u8] = slice::bytes_trim(b"\nhello world ");
assert_eq!(TRIMMED, b"hello world");