1 unstable release
0.1.0 | Jan 22, 2024 |
---|
#18 in #petgraph
201 downloads per month
Used in enumcapsulate
28KB
423 lines
enumcapsulate-macros
Derive macros for enumcapsulate crate.
Macros
The enumcapsulate-macros
proc-macro crate exports the following derive macros:
Derive macro | Functionality |
---|---|
AsVariant |
Umbrella derive macro for AsVariantRef , and AsVariantMut |
AsVariantMut |
Derive impls for enumcapsulate::AsVariantMut<T> for each variant type T |
AsVariantRef |
Derive impls for enumcapsulate::AsVariantRef<T> for each variant type T |
Encapsulate |
Umbrella derive macro for AsVariantMut , AsVariantRef , From , FromVariant , IntoVariant , IsVariant , TryInto , VariantDiscriminant , and VariantDowncast AsVariantMut |
From |
Derive impls for core::convert::From<T> for each variant type T |
FromVariant |
Derive impls for enumcapsulate::FromVariant<T> for each variant type T |
IntoVariant |
Derive impls for enumcapsulate::FromVariant<T> for each variant type T |
IsVariant |
Derive impl for enumcapsulate::IsVariant |
TryInto |
Derive impls for core::convert::TryInto<T> for each variant type T |
VariantDiscriminant |
Derive impl for enumcapsulate::VariantDiscriminant |
Documentation
Please refer to the documentation on docs.rs.
Contributing
Please read CONTRIBUTING.md for details on our code of conduct,
and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
License
This project is licensed under the MPL-2.0 – see the LICENSE.md file for details.
Dependencies
~315–770KB
~18K SLoC