3 个版本

0.1.2 2023 年 1 月 2 日
0.1.1 2023 年 1 月 1 日
0.1.0 2023 年 1 月 1 日

#2713 in 解析器实现

每月 22 次下载
用于 2 crates

MIT 许可证

6KB
74

readformat

format!(). 的逆操作。格式参数是格式字符串,s 参数是要匹配的字符串。

示例

  • 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

无运行时依赖