Function bincode::endian_choice::serialize
[−]
[src]
pub fn serialize<T: ?Sized, S, E>(value: &T, size_limit: S) -> Result<Vec<u8>> where T: Serialize, S: SizeLimit, E: ByteOrderSerializes a serializable object into a Vec of bytes.
If the serialization would take more bytes than allowed by size_limit,
an error is returned.