poly_enum 0.1.0

Hierarchical polymorphism with enums
Documentation
1
2
3
4
5
6
7
8
9
use poly_enum::PolyEnum;

#[derive(PolyEnum)]
enum Value<'a> {
	#[poly_enum(Ref)]
	Str(&'a str),
	#[poly_enum(Owned)]
	String(String),
}