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