[−][src]Function bincode::serialize
pub fn serialize<T: ?Sized, S>(value: &T, size_limit: S) -> Result<Vec<u8>> where
T: Serialize,
S: SizeLimit,
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.