Parse guard patterns
Open
syntax
- Dominant language
- Rust
- Stars
- 3.4k
- Forks
- 374
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 2
Description
- RFC: https://github.com/rust-lang/rfcs/pull/3637
- Tracking issue: https://github.com/rust-lang/rust/issues/129967
- Feature gate: `#![feature(guard_patterns)]`
```rust
match user.subscription_plan() {
(Plan::Regular if user.credit() >= 100) | (Plan::Premium if user.credit() >= 80) => {...}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.