#petgraph #typed #type-safe #macro-derive #proc-macro

macro enumcapsulate-macros

Procedural macros for 'enumcapsulate' crate

1 unstable release

0.1.0 Jan 22, 2024

#18 in #petgraph

Download history 33/week @ 2024-01-19 21/week @ 2024-01-26 14/week @ 2024-02-02 15/week @ 2024-02-09 40/week @ 2024-02-16 55/week @ 2024-02-23 30/week @ 2024-03-01 36/week @ 2024-03-08 71/week @ 2024-03-15 47/week @ 2024-03-22 56/week @ 2024-03-29 23/week @ 2024-04-05

201 downloads per month
Used in enumcapsulate

MPL-2.0 license

28KB
423 lines

enumcapsulate-macros

Crates.io Crates.io Crates.io docs.rs

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