match eq:类似于Rust的match宏使用PartialEq来“匹配”每个“ patten” 源码
匹配当量 Rust 的宏,该宏使用来每个“ ”。 例子 use std :: ffi :: {OsStr, OsString}; assert_eq! ( match_eq! (OsString :: from ( ":party_popper:" ) => { ":jack-o-lantern:" => 0 , ":rocket:" , ":party_popper:" => - 1 , s = OsStr :: new ( ":party_popper:" ) => { drop :: (s); - 2 } ref s = ":party_popper:" , OsStr :: new ( ":rocket:" ) => { let _: & OsString = s; - 3 } _ = ":party_popper:" => un
文件列表
match-eq-master.zip
(预估有个10文件)
match-eq-master
.gitignore
26B
README.md
1KB
.github
workflows
ci.yml
3KB
CODEOWNERS
11B
dependabot.yml
170B
COPYRIGHT.md
678B
Cargo.toml
555B
暂无评论