Function serialize

Source
pub fn serialize<S, V>(val: &V, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer, V: ToString,