nodyn 0.2.2

Easy polymorphism with enums
Documentation
nodyn::nodyn! {
  #[derive(Debug)]
  pub enum Foo<'a> {
    I64,
    Str<'a>,
    F64,
    u32,
  }
}

#[derive(Debug)]
pub struct I64(pub i64);

#[derive(Debug)]
pub struct Str<'a>(pub &'a str);

#[derive(Debug)]
pub struct F64(pub f64);

fn main() {}