Internal macro used in nvml-wrapper.
This macro is tied to the crate and is not meant for use by the general public.
Its purpose is to auto-generate both a
TryFrom implementation converting an
into a Rust enum (specifically for converting a C enum represented as an integer that
has come over FFI) and an
as_c method for converting the Rust enum back into an
It wouldn't take much effort to turn this into something usable by others; if you're interested feel free to contribute or file an issue asking me to put some work into it.