pub fn serialize<S: Serializer>(
    b: &Option<Vec<u8>>,
    s: S
) -> Result<S::Ok, S::Error>