pub fn drain_into(&mut self, dst: &mut Self) {
        for Entry { name, values } in self.entries.drain(..) {
            match values {
                Values::One(value) => dst.insert(name, value),
                Values::Many(values) => values
                    .into_iter()
                    .for_each(|value| dst.insert(name.clone(), value)),
            }
        }
    }
/// Drain all headers into another [Headers].
///
/// # Example
///
/// ```
/// use ezk_sip_types::{Headers, Name};
/// use ezk_sip_types::header::typed::Expires;
///
/// let mut headers1 = Headers::new();
/// let mut headers2 = Headers::new();
///
/// headers1.insert_type(&Expires(120));
///
/// assert_eq!(headers1.get::<Expires>().unwrap(), Expires(120));
/// assert!(headers2.get::<Expires>().is_err());
///
/// headers1.drain_into(&mut headers2);
///
/// assert!(headers1.get::<Expires>().is_err());
/// assert_eq!(headers2.get::<Expires>().unwrap(), Expires(120));
/// ```
Drain all headers into another [Headers].
Drain all headers into another [ Headers ] .
pub fn drain_into(&mut self, dst: &mut Self) {
        for Entry { name, values } in self.entries.drain(..) {
            match values {
                Values::One(value) => dst.insert(name, value),
                Values::Many(values) => values
                    .into_iter()
                    .for_each(|value| dst.insert(name.clone(), value)),
            }
        }
    }
pub fn drain_into ( & mut self , dst : & mut Self ) { for Entry { name , values } in self . entries . drain ( .. ) { match values { Values :: One ( value ) => dst . insert ( name , value ) , Values :: Many ( values ) => values . into_iter ( ) . for_each ( | value | dst . insert ( name . clone ( ) , value ) ) , } } }
Drain all headers into another [Headers].
Drain all headers into another [ Headers ] .
&mut self
dst
&mut Self
example
```
use ezk_sip_types::{Headers, Name};
use ezk_sip_types::header::typed::Expires.

let mut headers1 = Headers::new();
let mut headers2 = Headers::new().

headers1.insert_type(&Expires(120)).



headers1.drain_into(&mut headers2).


` ` ` use ezk_sip_types :: { Headers Name } ; use ezk_sip_types :: header :: typed :: Expires . let mut headers1 = Headers :: new () ; let mut headers2 = Headers :: new () . headers1 . insert_type ( &Expires ( 120 )) . headers1 . drain_into ( &mut headers2 ) .