Skip to main content

Crate viking_macros

Crate viking_macros 

Source
Expand description

§Viking Macros

GitHub License Crates.io Version docs.rs

§Available Derive Macros

  • EnumDisplay: Adds the Display trait to enums and can modify their string representation using helper attributes.
  • EnumVec: Puts all variants in a Vec.

Derive Macros§

EnumDisplay
Implements the Display trait for enums. Using [convert_case] crate for the conversion.
EnumVec
Implements the trait EnumVec, by adding all enum variants to a [Vec].