#enums #variant #try-let

enum_extract

Helper macros for extracting single enum variants of an enum

2 releases

Uses old Rust 2015

0.1.1 Jul 24, 2017
0.1.0 Feb 17, 2017

#2737 in Rust patterns

Download history 296/week @ 2024-01-04 127/week @ 2024-01-11 431/week @ 2024-01-18 446/week @ 2024-01-25 438/week @ 2024-02-01 246/week @ 2024-02-08 238/week @ 2024-02-15 102/week @ 2024-02-22 354/week @ 2024-02-29 101/week @ 2024-03-07 82/week @ 2024-03-14 213/week @ 2024-03-21 208/week @ 2024-03-28 122/week @ 2024-04-04 336/week @ 2024-04-11 114/week @ 2024-04-18

832 downloads per month
Used in 3 crates

MIT license

11KB
130 lines

Enum Extract

A crate of helper macros for extracting single enum variants of an enum.

Read the docs on docs.rs.


lib.rs:

This crate provides 2 macros, extract! and let_extract!. See their individual macro-level documentation for more information.

No runtime deps