fn try_to_vec(&self) -> Result<Vec<u8>, Error> {
        let mut result = Vec::with_capacity(DEFAULT_SERIALIZER_CAPACITY);
        self.serialize(&mut result)?;
        Ok(result)
    }
/// Serialize this instance into a vector of bytes.
Serialize this instance into a vector of bytes.
Serialize this instance into a vector of bytes .
fn try_to_vec(&self) -> Result<Vec<u8>, Error> {
        let mut result = Vec::with_capacity(DEFAULT_SERIALIZER_CAPACITY);
        self.serialize(&mut result)?;
        Ok(result)
    }
fn try_to_vec ( & self ) -> Result < Vec < u8 > , Error > { let mut result = Vec :: with_capacity ( DEFAULT_SERIALIZER_CAPACITY ) ; self . serialize ( & mut result ) ? ; Ok ( result ) }
Serialize this instance into a vector of bytes.
Serialize this instance into a vector of bytes .
&self
&self