pub fn simple_format(s: &str) -> IResult<&str, Box<dyn MessagePart>> {
    map(
        delimited(
            tag("{"),
            variable_name,
            tag("}")
        ),
        mk_simple
    )(s)
}
// A simple format has only a name, delimited by braces.
A simple format has only a name, delimited by braces.
A simple format has only a name delimited by braces .
pub fn simple_format(s: &str) -> IResult<&str, Box<dyn MessagePart>> {
    map(
        delimited(
            tag("{"),
            variable_name,
            tag("}")
        ),
        mk_simple
    )(s)
}
pub fn simple_format ( s : & str ) -> IResult < & str , Box < dyn MessagePart > > { map ( delimited ( tag ( " " ) , variable_name , tag ( " " ) ) , mk_simple ) ( s ) }
A simple format has only a name, delimited by braces.
A simple format has only a name delimited by braces .
s
&str
s
&str