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