encode_vec_format

Function encode_vec_format 

Source
pub fn encode_vec_format<F, E: Encode<F> + ?Sized>(
    e: &E,
) -> Result<Vec<u8>, Box<dyn Error + Send + Sync>>
Expand description

Encode an encodable type into a vector with a given format type.

Writing into a vector cannot cause an IO error and therefore this method returns only custom errors raised via the EncodeError::Custom variant.