testeronious@lemmy.world to Rust@programming.dev · 7 months agounfmt: A compile-time pattern matching library that reverses the interpolation process of format!.github.comexternal-linkmessage-square12fedilinkarrow-up158arrow-down11
arrow-up157arrow-down1external-linkunfmt: A compile-time pattern matching library that reverses the interpolation process of format!.github.comtesteronious@lemmy.world to Rust@programming.dev · 7 months agomessage-square12fedilink
minus-squarelivingcoder@programming.devlinkfedilinkarrow-up12·7 months agoHow does it handle multiple potential outcomes? Example: unformat!("a {} b {} c", "a x b b y c") Would it return Some(("x b", "y")) or Some(("x", "b y"))?
How does it handle multiple potential outcomes? Example:
unformat!("a {} b {} c", "a x b b y c")
Would it returnSome(("x b", "y"))
orSome(("x", "b y"))
?