hodgepodge 0.1.3

A hodgepodge of enums
Documentation

Build Status

About

The name says it all - this crate is just a hodgepodge of potentially useful enums.

Examples

Usage is pretty simple. Import, and use to your heart's desire.

use hodgepodge::*;

fn main() {
    println!("{:?}, {:?}, and {:?} are RGB colors", RGB::Blue, RGB::Red, RGB::Green);
}

This library works well with strum, so you can do things like this:

use hodgepodge::*;

fn main() {
    for member in Element::iter() {
        println!("{:?}", member);
    }
}

And this:

use hodgepodge::*;

fn main() {
    println!("There are {:?} elements", Element::iter().count());
}