pub const fn trim_ascii_end(bytes: &[u8]) -> &[u8] ⓘ
Available on crate feature
unstable
only.Expand description
Returns a byte slice with 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.