pub const fn trim_end(mut self) -> Self {
        parsing! {self, FromEnd;
            self.bytes = crate::slice::bytes_trim_end(self.bytes);
        }
    }
/// Removes whitespace from the end of the parsed bytes.
///
/// # Example
///
/// ```rust
/// use konst::{Parser, unwrap_ctx};
///
/// let mut parser = Parser::from_str("foo,\n    bar,\n    ");
///
/// parser = parser.trim_end();
/// assert_eq!(parser.bytes(), "foo,\n    bar,".as_bytes());
///
/// parser = unwrap_ctx!(parser.strip_suffix("bar,")).trim_end();
/// assert_eq!(parser.bytes(), "foo,".as_bytes());
///
/// ```
Removes whitespace from the end of the parsed bytes.
Removes whitespace from the end of the parsed bytes .
pub const fn trim_end(mut self) -> Self {
        parsing! {self, FromEnd;
            self.bytes = crate::slice::bytes_trim_end(self.bytes);
        }
    }
pub const fn trim_end ( mut self ) -> Self { parsing ! { self FromEnd self bytes crate slice bytes_trim_end ( self bytes ) } }
Removes whitespace from the end of the parsed bytes.
Removes whitespace from the end of the parsed bytes .
mut self
example
```rust
use konst::{Parser, unwrap_ctx}.

let mut parser = Parser::from_str("foo,\n    bar,\n    ").






` ` ` rust use konst :: { Parser unwrap_ctx } . let mut parser = Parser :: from_str ( " foo \ n bar \ n " ) .