/// Implementing the [crate::Indexed] and [crate::IndexedWithVariant] traits for an enum where every
/// variant is a unit variant (They have no fields) using the derive macros [crate::EnumIndexed] and
/// [crate::EnumValued].
///
/// In this example, we create an enum named Planet with every planet of the solar system and a
/// function returning the gravity of every planet.
///
/// Then we use the macros [crate::EnumIndexed] over the enum to get the index and name of every
/// variant, and then macro [crate::EnumValued] over the function to insert the gravity of every
/// variant into an array ([f32; *Number of planets*]) from which we can get the gravity of every
/// planet in constant time.
///
/// ```rust
#[doc = include_str!("../../examples/simple_enum__planets.rs")]
/// ```
///
/// Executing the main method will output:
#[doc = include_str!("../../examples/simple_enum__planets.md")]
pub mod example_1_basic_enum_and_values;


/// Similar to [example_1_basic_enum_and_values], but values are stored in a CSV file instead.
///
/// ```rust
#[doc = include_str!("../../examples/csv__planets.rs")]
/// ```
///
/// Executing the main method will output:
#[doc = include_str!("../../examples/csv__planets.md")]
pub mod example_2_csv;

