cstr-enum 1.0.0

A crate for defining C-style string enums.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error: target must be an enum
 --> $DIR/non_enum.rs:3:20
  |
3 | #[derive(FromCStr, AsCStr)]
  |                    ^^^^^^
  |
  = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: target must be an enum
 --> $DIR/non_enum.rs:3:10
  |
3 | #[derive(FromCStr, AsCStr)]
  |          ^^^^^^^^
  |
  = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)