fn rule_curly_braces(i: &str) -> IResult<&str, Vec<RuleContent>, VerboseError<&str>> {
        #[cfg(test)]
        trace!("Curly Braces: {}", i);

        Self::expect_non_empty(i)?;

        let result = context(
            "StyleRuleCurlyBraces",
            Self::trimmed(map(
                delimited(tag("{"), Self::rule_contents, tag("}")),
                |mut m: Vec<RuleContent>| {
                    m.insert(0, RuleContent::String("{".to_string().into()));
                    m.push(RuleContent::String("}".to_string().into()));
                    m
                },
            )),
        )(i);

        #[cfg(test)]
        trace!("Curly Braces: {:#?}", result);

        result
    }
/// Parse values within curly braces. This is basically just a helper for rules since
/// they may contain braced content. This function is for parsing it all and not
/// returning an incomplete rule at the first appearance of a closed curly brace
Parse values within curly braces. This is basically just a helper for rules since
they may contain braced content. This function is for parsing it all and not
returning an incomplete rule at the first appearance of a closed curly brace
Parse values within curly braces . This is basically just a helper for rules since they may contain braced content . This function is for parsing it all and not returning an incomplete rule at the first appearance of a closed curly brace
fn rule_curly_braces(i: &str) -> IResult<&str, Vec<RuleContent>, VerboseError<&str>> {
        #[cfg(test)]
        trace!("Curly Braces: {}", i);
        Self::expect_non_empty(i)?;
        let result = context(
            "StyleRuleCurlyBraces",
            Self::trimmed(map(
                delimited(tag("{"), Self::rule_contents, tag("}")),
                |mut m: Vec<RuleContent>| {
                    m.insert(0, RuleContent::String("{".to_string().into()));
                    m.push(RuleContent::String("}".to_string().into()));
                    m
                },
            )),
        )(i);
        #[cfg(test)]
        trace!("Curly Braces: {:#?}", result);
        result
    }
fn rule_curly_braces ( i : & str ) -> IResult < & str , Vec < RuleContent > , VerboseError < & str > > { # [ cfg ( test ) ] trace ! ( " " i ) ; Self :: expect_non_empty ( i ) ? ; let result = context ( " " , Self :: trimmed ( map ( delimited ( tag ( " " ) , Self :: rule_contents , tag ( " " ) ) , | mut m : Vec < RuleContent > | { m . insert ( 0 , RuleContent :: String ( " " . to_string ( ) . into ( ) ) ) ; m . push ( RuleContent :: String ( " " . to_string ( ) . into ( ) ) ) ; m } , ) ) , ) ( i ) ; # [ cfg ( test ) ] trace ! ( " " result ) ; result }
Parse values within curly braces.
Parse values within curly braces .
i
&str
i
&str