Skip to main content

serialize

Function serialize 

Source
pub fn serialize<'a, S, T>(x: &&'a T, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer, T: Serialize,
Expand description

serialize_ref functions similar to leak!, but it is meant to be used with Serde’s serialize_with field attribute.