trim_ascii

Function trim_ascii 

Source
pub const fn trim_ascii(bytes: &[u8]) -> &[u8] 
Available on crate feature unstable only.
Expand description

Returns a byte slice with leading and trailing ASCII whitespace bytes removed.

‘Whitespace’ refers to the definition used by u8::is_ascii_whitespace.

This is copied from the Rust standard library source until the byte_slice_trim_ascii feature is stabilized.