pub const fn bytes_trim_end(mut this: &[u8]) -> &[u8] {
    loop {
        match this {
            [rem @ .., b] if matches_space!(b) => this = rem,
            _ => return this,
        }
    }
}
/// Removes ascii whitespace from the end of `this`.
///
/// # Example
///
/// ```rust
/// use konst::slice;
///
/// const TRIMMED: &[u8] = slice::bytes_trim_end(b"\rfoo bar  ");
///
/// assert_eq!(TRIMMED, b"\rfoo bar");
///
/// ```
Removes ascii whitespace from the end of `this`.
Removes ascii whitespace from the end of ` this ` .
pub const fn bytes_trim_end(mut this: &[u8]) -> &[u8] {
    loop {
        match this {
            [rem @ .., b] if matches_space!(b) => this = rem,
            _ => return this,
        }
    }
}
pub const fn bytes_trim_end ( mut this : & [ u8 ] ) -> & [ u8 ] { loop { match this { [ rem @ .. , b ] if matches_space ! ( b ) => this = rem , _ => return this , } } }
Removes ascii whitespace from the end of `this`.
Removes ascii whitespace from the end of ` this ` .
this
&[u8]
example
```rust
use konst::slice.

const TRIMMED: &[u8] = slice::bytes_trim_end(b"\rfoo bar  ").

assert_eq!(TRIMMED, b"\rfoo bar").


` ` ` rust use konst :: slice . const TRIMMED : & [ u8 ] = slice :: bytes_trim_end ( b " \ rfoo bar " ) . assert_eq! ( TRIMMED b " \ rfoo bar " ) .