pub fn serialize<'a, S>(
    s: &SmartCow<'a>,
    serializer: S
) -> Result<S::Ok, S::Error> where
    S: Serializer