#enums #slice #u8 #fork #ref #convert #derive

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

#44 in #ref

Download history 96/week @ 2024-09-25 43/week @ 2024-10-02 48/week @ 2024-10-09 22/week @ 2024-10-16 27/week @ 2024-10-23 102/week @ 2024-10-30 71/week @ 2024-11-06 82/week @ 2024-11-13 94/week @ 2024-11-20 55/week @ 2024-11-27 58/week @ 2024-12-04 50/week @ 2024-12-11 23/week @ 2024-12-18 11/week @ 2024-12-25 29/week @ 2025-01-01 72/week @ 2025-01-08

139 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
~38K SLoC