• Stars
    star
    146
  • Rank 252,769 (Top 5 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created almost 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Macro for writing nested `if let` expressions

if_chain

CI Cargo

This crate provides a single macro called if_chain!.

if_chain! lets you write long chains of nested if and if let statements without the associated rightward drift. It also supports multiple patterns (e.g. if let Foo(a) | Bar(a) = b) in places where Rust would normally not allow them.

For more information on this crate, see the documentation and associated blog post.

More Repositories

1

maud

📝 Compile-time HTML templates for Rust
Rust
1,750
star
2

rust-errno

💥 Cross-platform interface to the `errno` variable
Rust
57
star
3

sylvia

🌲 Logic puzzle game based on the lambda calculus
Haskell
18
star
4

robot

🔧 Simulate keyboard and mouse events using Haskell
Haskell
17
star
5

juxta

Composable comparisons for TypeScript
TypeScript
10
star
6

wrapping_macros

💝 A macro for wrapping arithmetic
Rust
8
star
7

rose

🌹 Experimental regular expression engine for Rust
Rust
8
star
8

gensokyo

🌸 The cute operating system
Rust
7
star
9

option-filter

Adds a .filter() method to Option<T>
Rust
7
star
10

uguu

uguu~
Rust
6
star
11

ps

!! PROOF OF CONCEPT DO NOT USE !! The Philosopher's Stone — a library that makes `std::mem::transmute` safe ✨
Rust
6
star
12

lambda-fairy.github.io

My personal website
Rust
5
star
13

calc

➗ Simple scientific calculator in Python
Python
5
star
14

gtn

Guess the Number
JavaScript
4
star
15

nationstates

🌎 NationStates API client for Haskell
Haskell
4
star
16

hircine

A salacious IRC client library. Powers Cargobot.
Haskell
3
star
17

karkinos

🦀 Rustaceans.org clone with extra aesthetic
Rust
3
star
18

unicode-casefold

Case folding library
Rust
2
star
19

honk

📢 PC speaker interface written in Haskell
C
2
star
20

maud-book

📝 The (old) documentation for Maud. This has since been merged into the main Maud repository.
2
star
21

hakase

💐 Rock paper scissors AI contest server (WIP)
Haskell
2
star
22

duck

🦆 quack
Rust
1
star
23

ip-macro

Please use `net-literals` instead:
Rust
1
star
24

origami

Folding utilities
Rust
1
star
25

arroyo

:octocat: GitHub webhook handler
Python
1
star
26

rwi

(ABANDONED) Robot War Improved
Python
1
star
27

alexa-stats

HTML
1
star