Skip to main content

parse_content_format_spec

Function parse_content_format_spec 

Source
pub fn parse_content_format_spec(raw_spec: &str) -> Result<ContentFormatSpec>
Expand description

Parse a content-string format spec like "fg(red), bold, fixed(2)".

Used by both the f-string interpolation parser (when a :spec part is recognised as content-styling syntax) and any builder-API path that accepts a stringly-typed style descriptor.