Docs.rs
hgm-0.1.0
hgm 0.1.0
Permalink
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
Nazelto
Dependencies
Versions
100%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Crate hgm
hgm
0.1.0
All Items
Sections
Haskell 风格语法糖宏
Crate Items
Macros
Crate
hgm
Copy item path
Source
Expand description
§
Haskell 风格语法糖宏
本模块提供了三个宏,用于在 Rust 中模拟 Haskell 的 Guards 和模式匹配语法。
guard!
- Haskell 风格的 guard 表达式
fn_guard!
- 带 guard 语法的函数定义
case!
- Haskell 风格的 case 表达式
Macros
§
case
Haskell 风格的 Case 表达式宏
fn_
guard
Haskell 风格的 Guard 函数定义宏
guard
Haskell 风格的 Guard 表达式宏