readformat/README.md

11 lines
371 B
Markdown
Raw Permalink Normal View History

2023-01-01 19:37:49 +01:00
# 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")`
2023-01-30 02:12:05 +01:00
- `readf("I hope {} are doing {}!", "I hope you are doing well!")` => `Some(vec!["you", "well"])`
2023-01-01 19:37:49 +01:00
- `readf1("Goodbye, {}!", "Hello, world!")` => `None`