pub fn serialize<S, T: ToString>(v: &T, ser: S) -> Result<S::Ok, S::Error>
where S: Serializer,