hodgepodge 0.3.0

Lightweight dataset crate of enums for prototyping, teaching, and experimentation
Documentation
//! Miscellaneous datasets such as medals, ordinals, and programming trivia.
#![allow(missing_docs)]
#![allow(clippy::missing_docs_in_private_items)]

dataset_enum! {
    /// Programming languages better than Rust
    pub enum BetterThanRust {
        /// That's right, there aren't any.
        None = 0,
    }
}

#[cfg(test)]
mod better_than_rust_tests {
    use super::BetterThanRust;

    #[test]
    fn there_are_no_languages_better_than_rust() {
        assert_eq!(BetterThanRust::None as i32, 0);
    }

    #[cfg(feature = "strum")]
    #[test]
    fn enum_contains_single_variant() {
        use strum::EnumCount;

        assert_eq!(<BetterThanRust as EnumCount>::COUNT, 1);
    }
}

dataset_enum! {
    /// Standard medals
    pub enum Medal {
        /// A [Gold Medal](https://en.wikipedia.org/wiki/Gold_medal) is typical awarded for first place
        Gold = 1,

        /// A [Silver Medal](https://en.wikipedia.org/wiki/Silver_medal) is typical awarded for second place
        Silver = 2,

        /// A [Bronze Medal](https://en.wikipedia.org/wiki/Silver_medal) is typical awarded for third place
        Bronze = 3,
    }
}

dataset_enum! {
    /// English ordinal names for 1 through 30.
    #[allow(missing_docs)]
    pub enum Ordinal {
        First = 1,
        Second = 2,
        Third = 3,
        Fourth = 4,
        Fifth = 5,
        Sixth = 6,
        Seventh = 7,
        Eighth = 8,
        Ninth = 9,
        Tenth = 10,
        Eleventh = 11,
        Twelfth = 12,
        Thirteenth = 13,
        Fourteenth = 14,
        Fifteenth = 15,
        Sixteenth = 16,
        Seventeenth = 17,
        Eighteenth = 18,
        Nineteenth = 19,
        Twentieth = 20,
        Twentyfirst = 21,
        Twentysecond = 22,
        Twentythird = 23,
        Twentyfourth = 24,
        Twentyfifth = 25,
        Twentysixth = 26,
        Twentyseventh = 27,
        Twentyeighth = 28,
        Twentyninth = 29,
        Thirtieth = 30,
    }
}