whichever-macros 0.7.1

Procedural macros of the whichever crate
Documentation

whichever-macros

The procedural macros behind whichever, which implements a trait for an enum by forwarding to whichever variant it holds.

This crate is an implementation detail. Rust lets a proc-macro crate export nothing but its macros, so whichever re-exports #[dispatchable] and #[dispatch] from here and adds everything else around them: the documentation, the whichever::foreign declarations of standard library traits, and the hidden entry points the generated code calls back through. Depend on whichever and you get this crate with it; nothing in it is meant to be named directly.

Licensed under either of Apache License, Version 2.0 or MIT license at your option.