const_dispatch

Derive Macro ConstDispatch

Source
#[derive(ConstDispatch)]
Expand description

Derives/implements ConstDispatch for the given type.

The input must be a simple enum: that is, an enum whose variants have no payloads (often also called a “C enum”).