/// Parse a new `ContentEncoding` from the given string.
Parse a new `ContentEncoding` from the given string.
Parse a new ` ContentEncoding ` from the given string .
pub fn new(s: &'a str) -> Self {
        let s = s.trim();
        match s.parse() {
            Ok(enc) => ContentEncoding::Std(enc),
            Err(_) => ContentEncoding::Other(s),
        }
    }
pub fn new ( s : & ' a str ) -> Self { let s = s . trim ( ) ; match s . parse ( ) { Ok ( enc ) => ContentEncoding :: Std ( enc ) , Err ( _ ) => ContentEncoding :: Other ( s ) , } }
Parse a new `ContentEncoding` from the given string.
Parse a new ` ContentEncoding ` from the given string .
s
&'a str