pub fn append_fmt<T: fmt::Display>(&mut self, fmt: T) {
        let s = fmt.to_string();
        let value = match HeaderValue::from_shared(s.into()) {
            Ok(val) => val,
            Err(err) => panic!("illegal HeaderValue; error = {:?}, fmt = \"{}\"", err, fmt),
        };
        self.append(value);
    }
/// Append the `impl Display` to the list of headers.
///
/// # Panics
///
/// Encoding `HeaderValue`s is expected to be infallible. However, not
/// all UTF-8 sequences are valid for a `HeaderValue`. The type passed
/// here must ensure that its resulting string is a valid `HeaderValue`.
Append the `impl Display` to the list of headers.
Append the ` impl Display ` to the list of headers .
pub fn append_fmt<T: fmt::Display>(&mut self, fmt: T) {
        let s = fmt.to_string();
        let value = match HeaderValue::from_shared(s.into()) {
            Ok(val) => val,
            Err(err) => panic!("illegal HeaderValue; error = {:?}, fmt = \"{}\"", err, fmt),
        };
        self.append(value);
    }
pub fn append_fmt < T : fmt :: Display > ( & mut self , fmt : T ) { let s = fmt . to_string ( ) ; let value = match HeaderValue :: from_shared ( s . into ( ) ) { Ok ( val ) => val , Err ( err ) => panic ! ( " \" \" " err fmt ) , } ; self . append ( value ) ; }
Append the `impl Display` to the list of headers.
Append the ` impl Display ` to the list of headers .
&mut self
fmt
T
&mut self
fmt
T
panics
Encoding `HeaderValue`s is expected to be infallible. However, not
all UTF-8 sequences are valid for a `HeaderValue`. The type passed
here must ensure that its resulting string is a valid `HeaderValue`.
Encoding ` HeaderValue ` s is expected to be infallible . However not all UTF - 8 sequences are valid for a ` HeaderValue ` . The type passed here must ensure that its resulting string is a valid ` HeaderValue ` .