pub fn to_bytes<T>(ctxt: Context, value: &T) -> Result<Data<'static, 'static>>where T: Serialize + DynamicType + ?Sized,
Serialize T as a byte vector.
T
See Data::deserialize documentation for an example of how to use this function.
Data::deserialize