pub fn generate_encode_closure(shape: &'static Shape) -> String
Generate a Swift encode closure for use with encodeVec, encodeOption, etc.