Skip to main content

split_expression_and_format_spec

Function split_expression_and_format_spec 

Source
pub fn split_expression_and_format_spec(
    raw: &str,
) -> Result<(String, Option<InterpolationFormatSpec>)>
Expand description

Split interpolation content expr[:spec] at the top-level format separator.

This preserves :: (enum/type separators) and ignores separators inside nested delimiters/strings.