No description
crates | ||
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
readme.md |
ninox-std
A suit of creates to aid in development.
License
This project is licensed under AGPL-3.0-only. For more informations see the LICENSE
file inside the repository here.
Usage
This project can either be used via the big ninox-std
crate, which contains all feature-creates guarded by features, or you can depend on the feature-crates you want directly.
Feature-crates:
-
ninox-std-enum
: Helpers to work withenum
's. This contains the following derive macros and/or traits:-
TryFromRepr
: ImplementsTryFrom<...>
for an enum's scalar representation type. Requires that the enum has an attribute like#[repr(u32)]
. -
EnumMeta
: Trait and derive macro to implement some metadata about enums, like it'sMIN
andMAX
variants.
-