Function bincode::rustc_serialize::encode
[−]
[src]
pub fn encode<T: Encodable>(t: &T, size_limit: SizeLimit) -> EncodingResult<Vec<u8>>
Encodes an encodable object into a Vec
of bytes.
If the encoding would take more bytes than allowed by size_limit
,
an error is returned.