readformat

Crates.ioreadformat
lib.rsreadformat
version0.1.2
sourcesrc
created_at2023-01-01 18:41:09.234049
updated_at2023-01-02 17:24:00.491325
descriptionVery small format reader
homepage
repositoryhttps://github.com/tudbut/readformat
max_upload_size
id748974
size5,742
Tud (TudbuT)

documentation

README

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")
  • readf("I hope {} are {}!", "I hope you are doing well!") => Some(vec!["you", "well"])
  • readf1("Goodbye, {}!", "Hello, world!") => None
Commit count: 8

cargo fmt