Rust macro crate to automatically generate conversions from variant types into the target enum.
This crate requires Rust 1.15 or above to compile on stable.
```rust
extern crate from_variants;
pub enum Lorem { Str(String), Num(u16), }
fn main() { assert_eq!(Lorem::num(10), Lorem::from(10)); } ```
#[from_variants(skip)] to a specific variant.core::convert::From, add #[from_variants(no_std)] at the struct level.