fn pack(
        &self,
        mut msg: Vec<u8>,
        compression: &mut Option<HashMap<String, usize>>,
        compression_off: usize,
    ) -> Result<Vec<u8>, Error> {
        msg = pack_uint16(msg, self.pref);
        msg = self.mx.pack(msg, compression, compression_off)?;
        Ok(msg)
    }
// pack appends the wire format of the MXResource to msg.
pack appends the wire format of the MXResource to msg.
pack appends the wire format of the MXResource to msg .
fn pack(
        &self,
        mut msg: Vec<u8>,
        compression: &mut Option<HashMap<String, usize>>,
        compression_off: usize,
    ) -> Result<Vec<u8>, Error> {
        msg = pack_uint16(msg, self.pref);
        msg = self.mx.pack(msg, compression, compression_off)?;
        Ok(msg)
    }
fn pack ( & self , mut msg : Vec < u8 > , compression : & mut Option < HashMap < String , usize > > , compression_off : usize , ) -> Result < Vec < u8 > , Error > { msg = pack_uint16 ( msg , self . pref ) ; msg = self . mx . pack ( msg , compression , compression_off ) ? ; Ok ( msg ) }
pack appends the wire format of the MXResource to msg.
pack appends the wire format of the MXResource to msg .
&self
msg
Vec<u8>
compression
&mut Option<HashMap<String, usize>>
compression_off
usize
&self
msg
Vec<u8>
compression
&mut Option<HashMap<String, usize>>
compression_off
usize