Skip to main content

render_optional_source

Function render_optional_source 

Source
pub fn render_optional_source(value: &str) -> Result<String, FaceParseError>
Expand description

Render an optional string field: an empty value or none becomes None, anything else becomes Some("…") with the text escaped. 渲染可选字符串字段:空值或 none 变成 None,其余变成转义后的 Some("…")。