Crates.io | readformat |
lib.rs | readformat |
version | 0.1.2 |
source | src |
created_at | 2023-01-01 18:41:09.234049 |
updated_at | 2023-01-02 17:24:00.491325 |
description | Very small format reader |
homepage | |
repository | https://github.com/tudbut/readformat |
max_upload_size | |
id | 748974 |
size | 5,742 |
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 {}!", "I hope you are doing well!")
=> Some(vec!["you", "well"])
readf1("Goodbye, {}!", "Hello, world!")
=> None