#u8 #enums #slice #generate #fork #static #ref

macro enum_to_u8_slice_derive

A simple fork of enum_to_str_derive (by @DCjanus), convert enum to u8 slice ref

3 unstable releases

Uses old Rust 2015

0.2.0 Jul 9, 2020
0.1.1 Apr 5, 2018
0.1.0 Apr 5, 2018

#41 in #ref

Download history 123/week @ 2024-04-01 60/week @ 2024-04-08 47/week @ 2024-04-15 75/week @ 2024-04-22 65/week @ 2024-04-29 53/week @ 2024-05-06 74/week @ 2024-05-13 27/week @ 2024-05-20 30/week @ 2024-05-27 68/week @ 2024-06-03 59/week @ 2024-06-10 80/week @ 2024-06-17 87/week @ 2024-06-24 11/week @ 2024-07-01 38/week @ 2024-07-08 46/week @ 2024-07-15

192 downloads per month
Used in 2 crates

BSD-3-Clause

4KB

enum_to_u8_slice_derive

This crate is a fork of the enum_to_str_derive crate, written by @DCjanus.

Unlike enum_to_str_derive which outputs a &'static str, this crate generates a &'static [u8] .

Dependencies

~1.5MB
~35K SLoC