7 releases (4 stable)

new 1.0.4 Jan 3, 2026
1.0.3 Dec 17, 2025
1.0.1 Jan 29, 2025
0.1.2 Jan 2, 2023

#1515 in Parser implementations

Download history 132/week @ 2025-09-11 121/week @ 2025-09-18 289/week @ 2025-09-25 84/week @ 2025-10-02 176/week @ 2025-10-09 146/week @ 2025-10-16 123/week @ 2025-10-23 29/week @ 2025-10-30 190/week @ 2025-11-06 74/week @ 2025-11-13 199/week @ 2025-11-20 68/week @ 2025-11-27 112/week @ 2025-12-04 25/week @ 2025-12-11 39/week @ 2025-12-18

187 downloads per month
Used in 3 crates

MIT license

7KB
140 lines

readformat

The inverse of format!(). The format argument is the format string, and the s argument is the string to match the format against.

Examples:

  • readf1("Hello, {}!", "Hello, world!") => Some("world")
  • readf("I hope {} are doing {}!", "I hope you are doing well!") => Some(vec!["you", "well"])
  • readf1("Goodbye, {}!", "Hello, world!") => None

No runtime deps