#variant #enums

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

#2773 in Rust patterns

Download history 305/week @ 2024-07-22 257/week @ 2024-07-29 121/week @ 2024-08-05 354/week @ 2024-08-12 104/week @ 2024-08-19 171/week @ 2024-08-26 239/week @ 2024-09-02 50/week @ 2024-09-09 127/week @ 2024-09-16 109/week @ 2024-09-23 13/week @ 2024-09-30 10/week @ 2024-10-07 10/week @ 2024-10-14 17/week @ 2024-10-21 13/week @ 2024-10-28 32/week @ 2024-11-04

73 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