4个版本
| 0.1.3 | 2021年4月6日 |
|---|---|
| 0.1.2 | 2021年4月5日 |
| 0.1.1 | 2021年4月4日 |
| 0.1.0 | 2021年4月4日 |
22 in #wildcard
18KB
360 行
patmatch
Rust的一个可配置的模式匹配/通配符匹配库。
lib.rs:
一个可配置的模式匹配(也称为globbing)库。
该库的一般用途是编译 Pattern,然后使用它们。例如
use patmatch::{Pattern, MatchOptions};
let pat = Pattern::compile("*.png", MatchOptions::ALL);
assert!(pat.matches("file.png"));
assert!(!pat.matches("file.jpeg"));
依赖项
~120KB