unwrap_to

Build status

A simple utility macro that allows you to easily unwrap a ADT(Abstract Data Type) enum into a reference of its inner type. ```

[macrouse] extern crate unwrapto;

//! enum Rule { String(String), Number(u64), } //! fn main() { let rule = Rule::Number(7); asserteq!(&7, unwrapto!(rule => Rule::Number)); } ```