#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

#40 in #ref

Download history 10/week @ 2023-12-17 3/week @ 2023-12-31 22/week @ 2024-01-07 2/week @ 2024-01-14 11/week @ 2024-01-28 7/week @ 2024-02-04 27/week @ 2024-02-11 69/week @ 2024-02-18 110/week @ 2024-02-25 40/week @ 2024-03-03 56/week @ 2024-03-10 59/week @ 2024-03-17

272 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
~33K SLoC