penum 0.1.30

Make enum conform to a given pattern
Documentation
1
2
3
4
5
6
pub trait AbcTrait {
    fn a(&self) -> Option<i32>;
    fn b(&self) -> &Option<i32>;
    fn c(&self) -> (Option<i32>, &Option<&String>);
    fn d(&self) -> &String;
}