pub fn generate_encode_expr(shape: &'static Shape, value: &str) -> String
Generate a Swift encode expression for a given shape and value.