Crates.io | readformat |
lib.rs | readformat |
version | |
source | src |
created_at | 2023-01-01 18:41:09.234049 |
updated_at | 2025-01-29 04:35:59.161343 |
description | Very small format reader |
homepage | |
repository | https://github.com/tudbut/readformat |
max_upload_size | |
id | 748974 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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