| Crates.io | readformat |
| lib.rs | readformat |
| version | 1.0.1 |
| created_at | 2023-01-01 18:41:09.234049+00 |
| updated_at | 2025-01-29 04:35:59.161343+00 |
| description | Very small format reader |
| homepage | |
| repository | https://github.com/tudbut/readformat |
| max_upload_size | |
| id | 748974 |
| size | 7,071 |
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